]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add a test to exercise today's bug fix.
authorJim Meyering <meyering@redhat.com>
Tue, 11 Dec 2007 20:26:32 +0000 (21:26 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 11 Dec 2007 20:41:52 +0000 (21:41 +0100)
* tests/misc/selinux: Test for today's bug fix.
* NEWS: Mention the SELinux "ls -l" fix.

ChangeLog
NEWS
tests/misc/selinux

index c4940da3d04950472d1f7b1083ffc623d047bbb6..cec2373c2fdefd2a76dd01bfcd6f75ac523478dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/NEWS b/NEWS
index 52c03f1fcfe52153d7aaf6f2cfdd385755791fd9..2380d159fe664a9870e2b9e959655ad850a6d7f1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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]
index 847ccac2c652ac1b3a386794983d36d749e6561f..542d6e799e7b95ba7aa9a9baf4fcf7e34784a0dd 100755 (executable)
@@ -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