Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Brandt <jbrandt@bestpractical.com>2020-02-28 23:01:26 +0300
committersunnavy <sunnavy@bestpractical.com>2020-04-01 21:53:49 +0300
commit5da73ebd505cf4d8ab54854ce0ced0c521c281c3 (patch)
treec00e13e0d8e04a9fe1a6a68be2895d013278aa84 /configure.ac
parent659fc7caa5afc8e22224256bfa71b7bd6a284a19 (diff)
Use same method for getting user as group
In some cases USER and LOGNAME may not be defined, for example in a minimal server running in a docker container.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 69f6d0dbc3..c686cb56f2 100755
--- a/configure.ac
+++ b/configure.ac
@@ -223,7 +223,7 @@ AC_SUBST(RTGROUP)
dnl INSTALL AS ME
my_group=$($PERL -MPOSIX=getgid -le 'print scalar getgrgid getgid')
-my_user=${USER:-$LOGNAME}
+my_user=$($PERL -MPOSIX=getuid -le 'print scalar getpwuid getuid')
AC_ARG_WITH(my-user-group,
AC_HELP_STRING([--with-my-user-group],
[set all users and groups to current user/group]),