From 23c627d263701656532d63fade39da08072b56cf Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 5 Sep 2010 05:44:17 +0200 Subject: [PATCH] userplex: Better handling of the name of the required directory. --- src/userplex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.11.0