Manas Garg <[EMAIL PROTECTED]> writes:
| I added a user with a '.' in his name just to find that I couldn't use chown
| for that user. I have written a patch to escape '.' in the user name.

Thanks for the report and patch.
I've updated the chown --help output and documentation to reflect
the fact that `.' is now being deprecated.  Use `:', not `.' as the
separator.  Then your example works fine.

I'll change userspec.c so that it does the right thing
when given an `OWNER' argument (but no `:' or GROUP) where OWNER
contains at least one `.' character.  No escaping is necessary.
I expect that GNU chown will never support the OWNER.GROUP syntax
when the OWNER part contains a `.'.  In such a case you must use `:'.

Since the POSIX.2 spec for chown does not allow the `.' separator
that is currently accepted by GNU chown, new scripts should use `:'.
GNU chown may soon be able to warn about such obsolescent usage.

| *** fileutils-3.16.mod/lib/userspec.c Fri Feb 11 18:34:17 2000
| --- fileutils-3.16.orig/lib/userspec.c        Mon Jul 15 09:05:14 1996
...

Reply via email to