From 0e3b87195ab0820d228cda986ac916d52b696aff Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Sep 2006 22:09:49 +0000 Subject: 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. --- tests/install/basic-1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/install/basic-1') diff --git a/tests/install/basic-1 b/tests/install/basic-1 index bfddd6ef8..9c7d106ad 100755 --- a/tests/install/basic-1 +++ b/tests/install/basic-1 @@ -112,8 +112,7 @@ test -d xx/rel && fail=1 mkdir -p sub1/d || fail=1 (cd sub1/d && chmod a-rx .. && chmod a-r . && ginstall -d $abs/xx/zz rel/a rel/b 2> /dev/null) || fail=1 -chmod 755 sub1 || fail=1 -chmod 755 sub1/d || fail=1 +chmod 755 sub1 sub1/d || fail=1 test -d xx/zz || fail=1 test -d sub1/d/rel/a || fail=1 test -d sub1/d/rel/b || fail=1 -- cgit v1.2.3-54-g00ecf