summaryrefslogtreecommitdiff
path: root/tests/chmod
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2011-05-25 22:11:08 +0100
committerPádraig Brady <P@draigBrady.com>2011-05-25 23:04:12 +0100
commite89c998a9ecbe0a1b29d7e6c97531d5069877087 (patch)
tree1a556d33c38ffdabcfd43ce96c3f79dcd8f76383 /tests/chmod
parentbf9d4f1317e1247e16a643128a60620444d7049f (diff)
downloadcoreutils-e89c998a9ecbe0a1b29d7e6c97531d5069877087.tar.xz
chmod: output the original mode in verbose mode
* src/chmod.c (describe_change): Pass in the original mode, and output this in the messages. * tests/chmod/c-option: Adjust as per the new message. * THANKS.in: Remove the now auto-generated name. * NEWS: Mention the change in behavior. Signed-off-by: Pádraig Brady <P@draigBrady.com>
Diffstat (limited to 'tests/chmod')
-rwxr-xr-xtests/chmod/c-option4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chmod/c-option b/tests/chmod/c-option
index 14d89b6b0..d80038c3d 100755
--- a/tests/chmod/c-option
+++ b/tests/chmod/c-option
@@ -33,8 +33,8 @@ chmod -c g=rwx $file > empty || fail=1
test -s empty && fail=1
case "`cat out`" in
- "mode of \`f' changed to 0774 "?rwxrwxr--?) ;;
- *) fail=1 ;;
+ "mode of \`f' changed from 0744 "?rwxr--r--?" to 0774 "?rwxrwxr--?) ;;
+ *) cat out; fail=1 ;;
esac
Exit $fail