From: Fredrik Tolf Date: Sun, 5 Sep 2010 03:44:17 +0000 (+0200) Subject: userplex: Better handling of the name of the required directory. X-Git-Tag: 0.1~24 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=23c627d263701656532d63fade39da08072b56cf userplex: Better handling of the name of the required directory. --- diff --git a/src/userplex.c b/src/userplex.c index 77f79d7..8493f48 100644 --- a/src/userplex.c +++ b/src/userplex.c @@ -43,7 +43,7 @@ struct user { static int ignore = 0; static char *mgroup = NULL; -static char *dirname = "htpub"; +static char *dirname = NULL; static char **childspec; static uid_t minuid = 0; static struct user *users = NULL; @@ -269,8 +269,9 @@ int main(int argc, char **argv) } if(optind < argc) { childspec = argv + optind; - dirname = NULL; } else { + if(dirname == NULL) + dirname = "htpub"; bufinit(csbuf); bufadd(csbuf, "dirplex"); bufadd(csbuf, dirname);