Panu Matilainen 4a8173
diff -up rpm-4.7.2/configure.ac.chmod-test rpm-4.7.2/configure.ac
Panu Matilainen 4a8173
--- rpm-4.7.2/configure.ac.chmod-test	2009-11-25 09:19:30.000000000 +0200
Panu Matilainen 4a8173
+++ rpm-4.7.2/configure.ac	2009-12-04 11:23:39.000000000 +0200
Panu Matilainen 4a8173
@@ -61,7 +61,7 @@ AC_MSG_CHECKING(POSIX chmod)
Panu Matilainen 4a8173
 touch foo.chmodtest
Panu Matilainen 4a8173
 chmod 744 foo.chmodtest
Panu Matilainen 4a8173
 chmod +X foo.chmodtest 2>/dev/null
Panu Matilainen 4a8173
-a=`ls -l foo.chmodtest | awk '{print $1}'`
Panu Matilainen 4a8173
+a=`ls -l foo.chmodtest | awk '{print substr($1,1,10)}'`
Panu Matilainen 4a8173
 rm -f foo.chmodtest
Panu Matilainen 4a8173
 if test "$a" = "-rwxr-xr-x"; then
Panu Matilainen 4a8173
     AC_MSG_RESULT(yes)