Subject: Re: CVS commit: basesrc
To: Darren Reed <darrenr@netbsd.org>
From: Andy Doran <ad@netbsd.org>
List: source-changes
Date: 05/11/2000 18:37:28
There are other places this should be done, like newsyslog and inetd. Maybe
a function in libutil would be a good thing.

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