From: ewt Date: Thu, 15 May 1997 15:09:44 +0000 (+0000) Subject: Added --enable-broken-chmod X-Git-Tag: rpm-4.4-release~4102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a382cc365e7c7c1fb6fe58d6e4f4f1030130f8e;p=platform%2Fupstream%2Frpm.git Added --enable-broken-chmod CVS patchset: 1633 CVS date: 1997/05/15 15:09:44 --- diff --git a/configure.in b/configure.in index 6389c8d..2dac446 100644 --- a/configure.in +++ b/configure.in @@ -267,20 +267,25 @@ fi dnl Does chown() follow symlinks? This should be a good enough test. AC_MSG_CHECKING(whether chown() follows symlinks...) -if test `id -u` = 0; then - rm -f foo bar - touch foo - ln -s foo bar - chown 10 bar - if test `ls -l foo | awk '{print $3}'` != "root"; then - result=yes +AC_ARG_ENABLE([broken-chown], +[ --enable-broken-chown this system's chown follows symbolic links], + result=yes, result=no) +if test $result = no; then + if test `id -u` = 0; then + rm -f foo bar + touch foo + ln -s foo bar + chown 10 bar + if test `ls -l foo | awk '{print $3}'` != "root"; then + result=yes + else + result=no + fi + rm -f foo bar else - result=no + AC_MSG_CHECKING((cannot check by non-root user)) + result=yes fi - rm -f foo bar -else - AC_MSG_CHECKING((cannot check by non-root user)) - result=yes fi AC_MSG_RESULT($result) if test $result = yes; then