From f12c97e3ff4b5f638c51bff4fb94ac433231a91d Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 15 Dec 2013 17:02:15 +0100 Subject: Fix $config{UID} being set incorrectly Fixes issue #697 reported by @Nowaker --- configure | 4 ++-- 1 file 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"); -- cgit v1.2.3