*BSD News Article 70864


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!imci5!pull-feed.internetmci.com!news.internetMCI.com!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: BSDI User Accounts
Date: 12 Jun 1996 13:51:20 GMT
Organization: interface business GmbH, Dresden
Lines: 30
Message-ID: <4pmi0o$air@innocence.interface-business.de>
References: <31B3180D.4243@bekkers.com.au> <4pkv0r$civ@mercury.galstar.com>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

jmccorm@galstar.com (Josh McCormick) wrote:

> Here is a simple C program called "acct_disabled" to compile:
> 
> main() {
>   char *a;
>   printf ("\n\nYour account has been disabled due to system abuse.\n");
>   printf ("\nPress [ENTER] to disconnect.\n\n");
>   read(0,a,1);
>   exit(0);
> }

It will most likely fail with a segmentation violation. :)

If you don't wanna use my simple shell hack (see another followup in
this thread), do it at least right:

main() {
  char a;
  printf ("\n\nYour account has been disabled due to system abuse.\n");
  printf ("\nPress [ENTER] to disconnect.\n\n");
  read(0,&a,1);
  exit(0);
}


-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j