From owner-freebsd-hackers Wed Feb 19 21:51:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA19669 for hackers-outgoing; Wed, 19 Feb 1997 21:51:49 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id VAA19642 for ; Wed, 19 Feb 1997 21:51:40 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id GAA24088 for FreeBSD-hackers@FreeBSD.org; Thu, 20 Feb 1997 06:51:36 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id GAA27159; Thu, 20 Feb 1997 06:47:25 +0100 (MET) Message-ID: Date: Thu, 20 Feb 1997 06:47:25 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: FreeBSD-hackers@FreeBSD.org Subject: Re: hmm References: <199702192053.VAA02956@gvr.win.tue.nl> <199702192305.RAA08083@solaria.sol.net> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702192305.RAA08083@solaria.sol.net>; from Joe Greco on Feb 19, 1997 17:05:29 -0500 Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Joe Greco wrote: > > > char *p; > > > > > > if ((p = argv[0]) == NULL) > > > errx(2,"test: argc is zero"); > > Sanity check? I can't think of any cases where this would happen, but > maybe some kernel god would correct me. I think you could start a program without giving it an argv[0] if you use exec*() directly. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)