summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-06-09 04:40:53 +0100
committerSadie Powell <sadie@witchery.services>2021-06-09 04:40:53 +0100
commitffdae581d4d668884f9ab0ee8ae115c070c3b494 (patch)
tree9449fa6cf0a3b5b5ef6c86f2e13766ef7264de0a
parent3766337fcb3bef277d1fa6a116ea812a27848ab4 (diff)
Use dummy values for the user/group with --disable-ownership.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index a3631fa34..d39a80e39 100755
--- a/configure
+++ b/configure
@@ -231,7 +231,7 @@ if (defined $opt_portable) {
# Parse --gid=123 or --gid=foo and extract the group id.
my @group;
if (defined $opt_disable_ownership) {
- @group = getgrgid(getgid());
+ @group = qw(insert-group-here . -1);
print_error 'you can not use --disable-ownership and --gid at the same time!' if defined $opt_gid;
} elsif (defined $opt_gid) {
@group = $opt_gid =~ /^\d+$/ ? getgrgid($opt_gid) : getgrnam($opt_gid);
@@ -261,7 +261,7 @@ $config{GID} = $group[2];
# Parse --uid=123 or --uid=foo and extract the user id.
my @user;
if (defined $opt_disable_ownership) {
- @user = getpwuid(getuid());
+ @user = qw(insert-user-here . -1);
print_error 'you can not use --disable-ownership and --uid at the same time!' if defined $opt_uid;
} elsif (defined $opt_uid) {
@user = $opt_uid =~ /^\d+$/ ? getpwuid($opt_uid) : getpwnam($opt_uid);