From: Jim Meyering Date: Tue, 11 Dec 2007 20:26:32 +0000 (+0100) Subject: Add a test to exercise today's bug fix. X-Git-Tag: v6.9.91~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7407dc042ae4c0dc1599cd9ce1e73deb6f62da7f;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/ChangeLog b/ChangeLog index c4940da3d0..cec2373c2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Jim Meyering + + 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 "ls -l" wouldn't output "+" on SELinux hosts unless -Z was also given. diff --git a/NEWS b/NEWS index 52c03f1fcf..2380d159fe 100644 --- 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] diff --git a/tests/misc/selinux b/tests/misc/selinux index 847ccac2c6..542d6e799e 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