From dbde138155118344b33dfd2db95f688a24a42fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sun, 8 Feb 2015 21:00:49 +0100 Subject: configure --with-gameuser now defaults to games group. * configure.ac (--with-gameuser): Default to 'games' group instead of 'games' user. * lisp/play/gamegrid.el: Update comment to reflect that the 'update-game-score' helper program is now setgid by default. --- configure.ac | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5776e4ef8ed..192634bdc45 100644 --- a/configure.ac +++ b/configure.ac @@ -397,17 +397,12 @@ AC_ARG_WITH(gameuser,dnl An argument prefixed by ':' specifies a group instead.])]) gameuser= gamegroup= +# We don't test if we can actually chown/chgrp here, because configure +# may run without root privileges. lib-src/Makefile.in will handle +# any errors due to missing user/group gracefully. case ${with_gameuser} in no) ;; - "" | yes) - AC_MSG_CHECKING([whether a 'games' user exists]) - if id -u games >/dev/null 2>&1; then - AC_MSG_RESULT([yes]) - gameuser=games - else - AC_MSG_RESULT([no]) - fi - ;; + "" | yes) gamegroup=games ;; :*) gamegroup=`echo "${with_gameuser}" | sed -e "s/://"` ;; *) gameuser=${with_gameuser} ;; esac -- cgit v1.2.1