summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-16 13:03:07 +0200
committerJim Meyering <meyering@redhat.com>2008-06-16 13:42:01 +0200
commit3de15598304c141bdac5a3545874bab035536d88 (patch)
tree3dcf60ca0fce0f0cfd6631afb9917a8fc7315806 /tests
parent956abf969ca4e8f01403ae39991e42f0ad3c27cb (diff)
downloadcoreutils-3de15598304c141bdac5a3545874bab035536d88.tar.xz
chcon: correct --verbose output to include newlines
* src/chcon.c (process_file): Append "\n" to --verbose diagnostic. * tests/misc/chcon: Add a test for the above. * NEWS: mention the bug fix Reported by Carl D. Roth in http://bugzilla.redhat.com/451478.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/chcon4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/chcon b/tests/misc/chcon
index f8caadae2..fefe0ec46 100755
--- a/tests/misc/chcon
+++ b/tests/misc/chcon
@@ -60,4 +60,8 @@ EOF
compare out exp || fail=1
+chcon --verbose -u$u1 f > out || fail=1
+echo 'changing security context of `f'\' > exp
+compare out exp || fail=1
+
(exit $fail); exit $fail