From 31c0cf9a9fed97e14be80f2c7cae9a654e156549 Mon Sep 17 00:00:00 2001 From: Rezrov Frotz Date: Mon, 30 Jun 2014 12:06:29 -0400 Subject: Allow mixed case in user/group names --- miniircd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniircd b/miniircd index c47a275..d8d0017 100755 --- a/miniircd +++ b/miniircd @@ -883,7 +883,8 @@ def main(argv): from grp import getgrnam if os.getuid() != 0: op.error("Must be root to use --setuid") - match = re.findall(r"([a-z_][a-z0-9_-]*\$?)", options.setuid) + match = re.findall(r"([a-z_][a-z0-9_-]*\$?)", options.setuid, + flags=re.IGNORECASE) if len(match) > 1: options.setuid = (int(getpwnam(match[0]).pw_uid), int(getgrnam(match[1]).gr_gid)) -- cgit v1.2.3