From owner-freebsd-bugs Sat Feb 2 7:40: 6 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A5A3D37B400 for ; Sat, 2 Feb 2002 07:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g12Fe2175061; Sat, 2 Feb 2002 07:40:02 -0800 (PST) (envelope-from gnats) Date: Sat, 2 Feb 2002 07:40:02 -0800 (PST) Message-Id: <200202021540.g12Fe2175061@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Artem 'Zazoobr' Ignatjev" Subject: Re: bin/34483: wrong execv() call in amd for ${mount} and ${unmount} if mount type:=program in amd.map Reply-To: "Artem 'Zazoobr' Ignatjev" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/34483; it has been noted by GNATS. From: "Artem 'Zazoobr' Ignatjev" To: roam@ringlet.net, timon@memphis.mephi.ru Cc: bug-followup@FreeBSD.org Subject: Re: bin/34483: wrong execv() call in amd for ${mount} and ${unmount} if mount type:=program in amd.map Date: Sat, 2 Feb 2002 18:36:55 +0300 (MSK) > From roam@straylight.ringlet.net Sat Feb 2 18:21:17 2002 > Date: Sat, 2 Feb 2002 17:00:18 +0200 > From: Peter Pentchev > To: "Artem 'Zazoobr' Ignatjev" > Cc: bug-followup@FreeBSD.org > Subject: Re: bin/34483: wrong execv() call in amd for ${mount} and ${unmount} if mount type:=program in amd.map > > Actually, I now believe Erez to be correct - I no longer think this is a bug. > What he is trying to say is that you should provide argv[0] along with > the other arguments, *after* the path to the program. This allows you > to execute a program, giving it an argv[0] different from the filename > of the executable file - exactly the same way that inetd.conf's syntax > allows you to do the same. This is done to minimize the need for > hardlinks, as you say; even without a hardlink, you are able to invoke, > say, /sbin/mount as either 'mount' or 'mount_ffs' or 'mount_msdosfs' or > whatever else you like. Yeah, I found description of this in _info am-utils_... So this pr should be closed, or something To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message