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:
parent
1adb46a9f8
commit
46d1ba0448
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue