summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-06 10:42:11 +0100
committerKarolin Seeger <kseeger@samba.org>2009-02-16 09:56:57 +0100
commit0cc131629bd819eafd31540a35f8d9c11ec3b28f (patch)
tree9ed80d142ca0ceb6c34e2afedfda51850265af5d /source/utils
parent04ac16dc45ed0597c456575e8951315f6196be0a (diff)
downloadsamba-0cc131629bd819eafd31540a35f8d9c11ec3b28f.tar.gz
s3:net conf: remove check for sharename being a usernam in "net conf addshare"
This is useless and can be overriden by "net conf setparm" anyways. Michael (cherry picked from commit e513360db3f2cc6ff1865ec08fc243dd6346e18e)
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_conf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/utils/net_conf.c b/source/utils/net_conf.c
index ab1b0f3df76..3d542fc1bce 100644
--- a/source/utils/net_conf.c
+++ b/source/utils/net_conf.c
@@ -576,12 +576,6 @@ static int net_conf_addshare(struct net_context *c,
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");