diff options
author | Jim Meyering <meyering@redhat.com> | 2007-12-11 21:26:32 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-12-11 21:41:52 +0100 |
commit | 7407dc042ae4c0dc1599cd9ce1e73deb6f62da7f (patch) | |
tree | 14f6ca94d77a93fc6e422e334cde9e6679774111 | |
parent | 4245876e23866a198b92ed5c371658d8428d89ac (diff) | |
download | coreutils-7407dc042ae4c0dc1599cd9ce1e73deb6f62da7f.tar.xz |
Add a test to exercise today's bug fix.
* tests/misc/selinux: Test for today's bug fix.
* NEWS: Mention the SELinux "ls -l" fix.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | tests/misc/selinux | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2007-12-11 Jim Meyering <meyering@redhat.com> + + Add a test to exercise today's bug fix. + * tests/misc/selinux: Test for today's bug fix. + * NEWS: Mention the SELinux "ls -l" fix. + 2007-12-11 Paul Eggert <eggert@cs.ucla.edu> "ls -l" wouldn't output "+" on SELinux hosts unless -Z was also given. @@ -4,6 +4,8 @@ GNU coreutils NEWS -*- outline -*- ** Bug fixes + "ls -l" would not output "+" on SELinux hosts unless -Z was also given. + "rm" would fail to unlink a non-directory when run in an environment in which the user running rm is capable of unlinking a directory. [bug introduced in coreutils-6.9] diff --git a/tests/misc/selinux b/tests/misc/selinux index 847ccac2c..542d6e799 100755 --- a/tests/misc/selinux +++ b/tests/misc/selinux @@ -36,6 +36,9 @@ for i in d f p; do c=`stat --printf %C $i`; test x$c = x$ctx || fail=1 done +# ensure that ls -l output includes the "+". +c=`ls -l f|cut -c11`; test "$c" = + || fail=1 + # Copy each to a new directory and ensure that context is preserved. cp -r --preserve=all d f p s1 || fail=1 for i in d f p; do |