Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600a1ce
)
userplex: Better handling of the name of the required directory.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Sep 2010 03:44:17 +0000
(
05:44
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Sep 2010 03:44:17 +0000
(
05:44
+0200)
src/userplex.c
patch
|
blob
|
blame
|
history
diff --git
a/src/userplex.c
b/src/userplex.c
index
77f79d7
..
8493f48
100644
(file)
--- 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);