Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: basesrc
Andy Doran <ad%netbsd.org@localhost> writes:
> There are other places this should be done, like newsyslog and inetd. Maybe
> a function in libutil would be a good thing.
I don't understand the suggestion. All that is needed in those other
places is to deal with . in a username -- only chown has this
"two different kind of separators" problem...
> Darren Reed <darrenr%netbsd.org@localhost> wrote:
>
> > change the parsing of chown user[:gid] to the following:
> >
> > 1. if there is a colon present, use that as a separator for user:group
> >
> > 2. if there is no colon, attempt to convert the arg into a username,
> > searching backwards in the string for a '.' for us.er.group
> >
> > 3. if the arg doesn't match a username and has a '.' in it, split it
> > up and try user.group
>
--
Perry Metzger perry%piermont.com@localhost
--
"Ask not what your country can force other people to do for you..."
Home |
Main Index |
Thread Index |
Old Index