diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-02 15:30:27 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-02 16:38:36 +0200 |
commit | 545304577f0ac82b2e4c1caa97f02d87f41324f7 (patch) | |
tree | 353a917f8e4cc21107d26ef02ec12577bc469391 | |
parent | fb04e4d8104c5566d66efae0d86738fd169b4e0a (diff) | |
download | rpm-545304577f0ac82b2e4c1caa97f02d87f41324f7.tar.gz |
Fix the posix chown test for selinux enabled systems (RhBug:543035)
- on selinux enabled systems, 'ls -l' mode string is longer than
expected here, just trim the ls output to our expected length
(cherry picked from commit 46d1ba04483af09590ed070186a1be10b57c5977)
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 967566c0a..22740807c 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ AC_MSG_CHECKING(POSIX chmod) touch foo.chmodtest chmod 744 foo.chmodtest chmod +X foo.chmodtest 2>/dev/null -a=`ls -l foo.chmodtest | awk '{print $1}'` +a=`ls -l foo.chmodtest | awk '{print substr($1,1,10)}'` rm -f foo.chmodtest if test "$a" = "-rwxr-xr-x"; then AC_MSG_RESULT(yes) |