diff options
author | Peter Powell <petpow@saberuk.com> | 2013-12-15 17:02:15 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-12-15 17:02:15 +0100 |
commit | f12c97e3ff4b5f638c51bff4fb94ac433231a91d (patch) | |
tree | c1f9bb0b6043476b19c934286947e0a865995b0c /configure | |
parent | 575a3126834d3f283f6296e33c8bce94ee7a0f59 (diff) |
Fix $config{UID} being set incorrectly
Fixes issue #697 reported by @Nowaker
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,7 +116,7 @@ if (defined $opt_base_dir) { } if (defined $opt_system) { - $config{UID} = $opt_uid || 'ircd'; + $config{UID} = defined $opt_uid ? $opt_uid : 'ircd'; $config{CONFIG_DIR} = '/etc/inspircd'; $config{MODULE_DIR} = '/usr/lib/inspircd'; $config{BINARY_DIR} = '/usr/sbin/'; @@ -124,7 +124,7 @@ if (defined $opt_system) { $config{DATA_DIR} = '/var/inspircd'; $config{LOG_DIR} = '/var/log/inspircd'; } else { - $config{UID} = $opt_uid || $<; + $config{UID} = defined $opt_uid ? $opt_uid : $<; $config{CONFIG_DIR} = rel2abs($config{BASE_DIR}."/conf"); $config{MODULE_DIR} = rel2abs($config{BASE_DIR}."/modules"); $config{BINARY_DIR} = rel2abs($config{BASE_DIR}."/bin"); |