Subject: Re: su(1) not working?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Arto Huusko <arto.huusko@utu.fi>
List: netbsd-users
Date: 06/19/2002 19:45:25
Jeremy C. Reed wrote:
> On Tue, 18 Jun 2002, Richard Grace wrote:
>>This seems to be a change in the last week or two (sorry I can't be
>>more specific) which affects the '-' option in su(1)
>
>>I looked at the CVS repository, but there doesn't seem to be any
>>change to the su(1) code which would affect this.
>
> Same here. I wonder why I don't see this via CVS web?
IIRc, there were some changes to getopt(3). Hmm, indeed:
basesrc/lib/libc/stdlib/getopt.c
1.23:
According to POSIX, "-" (the string) is an exception and should not
be parsed as option. Restore behaviour broken by previous commit.
Mirrors second part of patch from lib/17248.
1.22:
Fix '-' handling. POSIX only recognizes "--" as end-of-options.
Problem noted in lib/17248 by David Laight, including a patch.
Part of this patch was used.
--
arto