From owner-cvs-all Thu Dec 24 13:35:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23208 for cvs-all-outgoing; Thu, 24 Dec 1998 13:35:29 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23201; Thu, 24 Dec 1998 13:35:25 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.1/8.9.1) id WAA76331; Thu, 24 Dec 1998 22:35:12 +0100 (CET) (envelope-from des) To: Steve Price Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/w w.c References: <199812241820.KAA03915@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: 24 Dec 1998 22:35:12 +0100 In-Reply-To: Steve Price's message of "Thu, 24 Dec 1998 10:20:59 -0800 (PST)" Message-ID: Lines: 16 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Steve Price writes: > steve 1998/12/24 10:20:58 PST > > Modified files: > usr.bin/w w.c > Log: > Since argv is in scope, use argv[0] instead of __progname. Is that correct? __progname is (AFAIK) guaranteed to always be the base name (without the directory part) - at least now that it is fixed for Elf programs - whereas argv[0] may or may not contain a directory part. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message