From: Richard W.M. Jones Date: Thu, 9 Dec 2010 12:06:09 +0000 (+0000) Subject: build: Remove check for root. X-Git-Tag: 1.7.21~10 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=8e4c22db236f08f836a8ab94c8bb025d727684b5;hp=75893a554c374f59318844bca3433e6a2d6c774b build: Remove check for root. With the new package building system, it is no longer dangerous to run 'configure', 'make' or 'make check' as root (although it is still not necessary and not advisable). In any case we don't need to check this. --- diff --git a/configure.ac b/configure.ac index 89b5618..5752c62 100644 --- a/configure.ac +++ b/configure.ac @@ -53,16 +53,6 @@ please see the section "LIBGUESTFS VERSION NUMBERS" in guestfs(3). ***]) ]) -dnl Die if the user tries to configure as root, see: -dnl https://www.redhat.com/archives/libguestfs/2010-April/msg00098.html -AC_MSG_CHECKING([if you are trying to configure as root]) -AS_IF([test "`id -u`" = 0 ],[ - AC_MSG_RESULT([yes]) - AC_MSG_FAILURE([Don't run './configure' or 'make' as root.]) - ],[ - AC_MSG_RESULT([no]) - ]) - dnl Early gnulib initialization. gl_EARLY gl_INIT diff --git a/src/Makefile.am b/src/Makefile.am index 4827e27..2b9c49b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -186,14 +186,3 @@ stamp-guestfs.pod: guestfs.pod \ --insert guestfs-structs.pod:@STRUCTS@ \ $< touch $@ - -# Check user doesn't try to do 'make all' or 'make check' as root. -# https://www.redhat.com/archives/libguestfs/2010-April/msg00098.html - -all-local: checkroot -check-local: checkroot -checkroot: - @if [ "`id -u`" = 0 ]; then \ - echo "*** Error: Don't run 'make' or 'make check' as root."; \ - exit 1; \ - fi