]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:net conf: remove check for sharename being a usernam in "net conf addshare"
authorMichael Adam <obnox@samba.org>
Fri, 6 Feb 2009 09:42:11 +0000 (10:42 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:56:57 +0000 (09:56 +0100)
This is useless and can be overriden by "net conf setparm" anyways.

Michael
(cherry picked from commit e513360db3f2cc6ff1865ec08fc243dd6346e18e)

source/utils/net_conf.c

index ab1b0f3df7632a7c111bda868a66b140f7bca2ff..3d542fc1bce1032f8a98b57dd6d3f3c89a66aeac 100644 (file)
@@ -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");