X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fuserplex.c;h=8493f487bf4bbf9e77fb0d82a30fd38880ab1cbf;hp=77f79d74e2f76ebc873705b13acafa73316c37eb;hb=23c627d263701656532d63fade39da08072b56cf;hpb=600a1ce79471493f8cad5fcf118dc9797331d5aa 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);