summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-12-15 17:02:15 +0100
committerAttila Molnar <attilamolnar@hush.com>2013-12-15 17:02:15 +0100
commitf12c97e3ff4b5f638c51bff4fb94ac433231a91d (patch)
treec1f9bb0b6043476b19c934286947e0a865995b0c
parent575a3126834d3f283f6296e33c8bce94ee7a0f59 (diff)
Fix $config{UID} being set incorrectly
Fixes issue #697 reported by @Nowaker
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 5873961ec..2f92d9f16 100755
--- a/configure
+++ b/configure
@@ -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");