diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-18 22:09:49 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-18 22:09:49 +0000 |
commit | 0e3b87195ab0820d228cda986ac916d52b696aff (patch) | |
tree | aa59e32593d2e666b9afdc509704b4e38013f9f5 /ChangeLog | |
parent | bebf83d0fd198ea199f6df9684141d284b5323e2 (diff) | |
download | coreutils-0e3b87195ab0820d228cda986ac916d52b696aff.tar.xz |
Fix bug where chmod, chown, and chgrp did not process operands
left-to-right in some cases.
* src/chmod.c (wd_errno): New var.
(chmod_file): New function, with most of the contents of the
old prcess_file function.
(process_files): Use it. This gives file names to fts one
at a time, so that they are processed left-to-right as POSIX
requires.
* src/chown-core.c (wd_errno, chown_files): Likewise.
(chown_file): New function.
* tests/install/basic-1: Redo test so as to not workaround
the chmod bug, thereby testing for it.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,18 @@ 2006-09-18 Paul Eggert <eggert@cs.ucla.edu> + Fix bug where chmod, chown, and chgrp did not process operands + left-to-right in some cases. + * src/chmod.c (wd_errno): New var. + (chmod_file): New function, with most of the contents of the + old prcess_file function. + (process_files): Use it. This gives file names to fts one + at a time, so that they are processed left-to-right as POSIX + requires. + * src/chown-core.c (wd_errno, chown_files): Likewise. + (chown_file): New function. + * tests/install/basic-1: Redo test so as to not workaround + the chmod bug, thereby testing for it. + * src/shuf.c (main): Quote the entire range when reporting an invalid one, rather than just the part that contained the error. |