diff options
author | Wayne Davison <wayne@opencoder.net> | 2021-01-15 07:38:49 -0800 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2021-01-15 07:38:49 -0800 |
commit | ec1d5d564cb6b7942796fe6de9a074147b196479 (patch) | |
tree | 13a87af7da2dd56c3702ecba0021215d8d0a9283 /configure.ac | |
parent | 26befd9c6ca03f23e5b2587b2b7618ca1dafc5a2 (diff) | |
download | rsync-ec1d5d564cb6b7942796fe6de9a074147b196479.tar.gz |
Add `--with-nobody-user=FOO` configure option.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0f8e38f3..b81cfe33 100644 --- a/configure.ac +++ b/configure.ac @@ -194,6 +194,11 @@ AC_DEFINE_UNQUOTED(RSYNC_RSH, "$RSYNC_RSH", [default -e command]) AC_PATH_PROG(SHELL_PATH, sh, /bin/sh, [/usr/xpg4/bin$PATH_SEPARATOR$PATH]) AC_PATH_PROG(FAKEROOT_PATH, fakeroot, /usr/bin/fakeroot, [/usr/xpg4/bin$PATH_SEPARATOR$PATH]) +AC_ARG_WITH(nobody-user, + AS_HELP_STRING([--with-nobody-user=USER],[set the default unprivileged user (default nobody)]), + [ NOBODY_USER="$with_nobody_user" ], + [ NOBODY_USER="nobody" ]) + AC_ARG_WITH(nobody-group, AS_HELP_STRING([--with-nobody-group=GROUP],[set the default unprivileged group (default nobody or nogroup)]), [ NOBODY_GROUP="$with_nobody_group" ]) @@ -210,7 +215,7 @@ if test x"$with_nobody_group" = x; then AC_MSG_RESULT($NOBODY_GROUP) fi -AC_DEFINE_UNQUOTED(NOBODY_USER, "nobody", [unprivileged user--e.g. nobody]) +AC_DEFINE_UNQUOTED(NOBODY_USER, "$NOBODY_USER", [unprivileged user--e.g. nobody]) AC_DEFINE_UNQUOTED(NOBODY_GROUP, "$NOBODY_GROUP", [unprivileged group for unprivileged user]) # SIMD optimizations |