bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CORRECTION/last time, dammit!] Unpriviledged DESTDIR install of su


From: Bernd Jendrissek
Subject: [CORRECTION/last time, dammit!] Unpriviledged DESTDIR install of su
Date: Mon Nov 4 11:52:47 2002

These fsck'ing brains are *non*deterministic, I tell you!

Okay, once and for all, let me get the right patch into the archive of the
right list.  Then I'll fetch the jaws of life to get my foot out of its
matching mouth.  (And upgrade my firmware to brain-2.17.42)

Thanks for everyone's patience!

--- coreutils-4.5.3/src/Makefile.am     Fri Oct 25 20:58:45 2002
+++ coreutils-4.5.3/src/Makefile.am.orig        Sun Sep 22 00:40:35 2002
@@ -95,9 +95,7 @@
   echo " $(INSTALL_PROGRAM) $$p $(installed_su)"; \
   $(INSTALL_PROGRAM) $$p $(installed_su); \
+  echo " chown root $(installed_su) && chmod $(setuid_root_mode) 
$(installed_su)"; \
-  echo " chown root $(installed_su)"; \
+  chown root $(installed_su) && chmod $(setuid_root_mode) $(installed_su) || 
true
-  chown root $(installed_su); \
-  echo " chmod $(setuid_root_mode) $(installed_su)"; \
-  chmod $(setuid_root_mode) $(installed_su)
 
 install-root: su
        @$(INSTALL_SU)
@@ -113,12 +113,11 @@
          && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
          && can_create_suid_root_executable=yes; \
        rm -f $$TMPFILE; \
+       if test $$can_create_suid_root_executable != yes; then \
+         echo "WARNING: insufficient access; su is not installed properly"; \
-       if test $$can_create_suid_root_executable = yes; then \
-         $(INSTALL_SU); \
-       else \
-         echo "WARNING: insufficient access; not installing su"; \
          echo "NOTE: to install su, run 'make install-root' as root"; \
+       fi; \
+       $(INSTALL_SU)
-       fi
 
 uninstall-local:
 # Remove su only if it's one we installed.



 








$ NAME=bernd ./configure \
        --prefix=/.. \
        --sysconfdir=/dev/null \
        --localstatedir=/dev/random \
        --with-genes=/usr/share/genes/{mom,pop} \
        --disable-brain \
        --enable-maxage=238 # Yeah, right!
checking build system type... god-god-god-god <- gcc bootstrap looks easy
checking host system type... carbon-human-random-god
checking for a BSD-compatible install... /usr/bin/maternity-ward --retries=3
checking whether build environment is sane... yehgoqucmquark
checking for gawk... gawk --prefer-women
...
checking for brain implementation... no
*** WARNING: Using --disable-brain might lead to foot-in-mouth disease ***
...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]