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
This commit is contained in:
Panu Matilainen 2009-12-02 15:30:27 +02:00
parent 1adb46a9f8
commit 46d1ba0448
1 changed files with 1 additions and 1 deletions

View File

@ -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)