diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-08 14:37:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-08 14:37:29 +0300 |
commit | 4ad7f40395be970b7d84cb9782ce6c7717db9d37 (patch) | |
tree | 0661cc8981f6d55c4065805e450987a03da63f74 /configure.ac | |
parent | c9b6fc7e2d3d7395346acf3e3092d22474d82d55 (diff) | |
download | rpm-4ad7f40395be970b7d84cb9782ce6c7717db9d37.tar.gz rpm-4ad7f40395be970b7d84cb9782ce6c7717db9d37.tar.bz2 rpm-4ad7f40395be970b7d84cb9782ce6c7717db9d37.zip |
Rip useless ROOT_GROUP checking from configure
- it was only used for an ancient RH-specific %_fixgroup anyway which
in turn only ever did anything when building as root - bad bad...
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/configure.ac b/configure.ac index 3c7714dd7..04c936c75 100644 --- a/configure.ac +++ b/configure.ac @@ -885,40 +885,6 @@ AC_CHECK_FUNC(lchown, AC_SUBST(__CHOWN_RHF) AC_SUBST(__CHGRP_RHF) -dnl -dnl figure out what root's primary group is -dnl -AC_MSG_CHECKING(root's primary group) -AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> -#include <sys/types.h> -#include <pwd.h> -#include <grp.h> - -int main() -{ - struct passwd *root = NULL; - struct group *roots_group = NULL; - FILE * tempfile = NULL; - - root = getpwuid( (uid_t) 0 ); - if (root != NULL) { - roots_group = getgrgid(root->pw_gid); - if (roots_group != NULL) { - tempfile = fopen("conftest_rootg", "w"); - if (tempfile != NULL) { - fprintf(tempfile, "%s\n", roots_group->gr_name); - fclose(tempfile); - exit(0); - } - } - } - - exit(1); -}]])],[ROOT_GROUP=`cat conftest_rootg`],[ROOT_GROUP="root"],[ROOT_GROUP="root" -]) -AC_MSG_RESULT($ROOT_GROUP) -AC_SUBST(ROOT_GROUP) - if echo "$host_os" | grep sco > /dev/null; then echo "hacking things up for sco" AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)]) |