mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Use dummy values for the user/group with --disable-ownership.
This commit is contained in:
parent
3766337fcb
commit
ffdae581d4
4
configure
vendored
4
configure
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user