git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c9b13a
)
s3:net conf: remove check for sharename being a usernam in "net conf addshare"
author
Michael Adam
<obnox@samba.org>
Fri, 6 Feb 2009 09:42:11 +0000
(10:42 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 6 Feb 2009 11:27:58 +0000
(12:27 +0100)
This is useless and can be overriden by "net conf setparm" anyways.
Michael
source/utils/net_conf.c
patch
|
blob
|
history
diff --git
a/source/utils/net_conf.c
b/source/utils/net_conf.c
index 08a06eabd41b2cb2230aeab5eb9de750d7d65af8..6639b85be96a78634635ff158c653dde4606cd21 100644
(file)
--- a/
source/utils/net_conf.c
+++ b/
source/utils/net_conf.c
@@
-549,12
+549,6
@@
static int net_conf_addshare(struct smbconf_ctx *conf_ctx,
goto done;
}
- if (getpwnam(sharename)) {
- d_fprintf(stderr, "ERROR: share name %s is already a valid "
- "system user name.\n", sharename);
- goto done;
- }
-
if (strequal(sharename, GLOBAL_NAME)) {
d_fprintf(stderr,
"ERROR: 'global' is not a valid share name.\n");