Re: userspec fixes for coreutils (e.g., "chown 010 file")

2004-08-19 Thread Paul Eggert
"Dmitry V. Levin" <[EMAIL PROTECTED]> writes: > $ chown "`id -u`.`id -g`" . > chown: `567.567': invalid user > $ chown "`id -un`.`id -gn`" . > chown: `me.me': invalid user > > Proposed fix along with new testcase is attached. Thanks for finding that. While looking at your patch, I noticed a simi

Re: userspec fixes for coreutils (e.g., "chown 010 file")

2004-08-13 Thread Dmitry V. Levin
Hi, On Wed, Jul 28, 2004 at 04:10:14PM -0700, Paul Eggert wrote: > coreutils chown and chgrp mishandle some numeric uids and gids that > have leading zeros. For example, "chown 010 file" is treated as > "chown 8 file", where it should be like "chown 10 file". I discovered > this while auditing f

userspec fixes for coreutils (e.g., "chown 010 file")

2004-07-28 Thread Paul Eggert
coreutils chown and chgrp mishandle some numeric uids and gids that have leading zeros. For example, "chown 010 file" is treated as "chown 8 file", where it should be like "chown 10 file". I discovered this while auditing for integer arithmetic problems, and installed the following patch to fix t