Garrett D'Amore wrote:
3) chown differs primarily in that it uses "." instead of ":" to
delineate the group name from the username. It seems like the
"standard" (Solaris version in /usr/bin) could honor *both* : and .
fairly easily. (I think the xpg4 has to remain the way it is to avoid
breaking compatibility.) Is it even possible that a user or group name
be constructed that contains "."? What are the semantics of this?
If memory serves, there's an old bug in the Sun bugs database filed all
the way before Solaris 2.0 was released, asking for this change. Which
was actually implemented before being backed out "because a username
could contain a dot".
However, it always seemed to me that you could use an algorithm that said
1. If the argument contains ":", this is the separator.
2. Else if you find a matching username (possibly containing a dot,
although this is unlikely) that matches the whole argument then use this
as a pure username.
3. Else if the argument contains a dot and #2 didn't match, split into
user/group and try again.
Hugh.
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code