Subject: Re: CVS commit: basesrc
To: Andy Doran <ad@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 05/13/2000 10:01:14
Andy Doran <ad@netbsd.org> 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> 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
--
"Ask not what your country can force other people to do for you..."