Fix bug where chmod, chown, and chgrp did not process operands
commit0e3b87195ab0820d228cda986ac916d52b696aff
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Sep 2006 22:09:49 +0000 (18 22:09 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Sep 2006 22:09:49 +0000 (18 22:09 +0000)
treeaa59e32593d2e666b9afdc509704b4e38013f9f5
parentbebf83d0fd198ea199f6df9684141d284b5323e2
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.
ChangeLog
src/chmod.c
src/chown-core.c
tests/install/basic-1