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)
committerMichael Adam <obnox@samba.org>
Fri, 6 Feb 2009 10:05:50 +0000 (11:05 +0100)
This is useless and can be overriden by "net conf setparm" anyways.

Michael

source3/utils/net_conf.c

index 31e87ca804a713e4032a1933d2c808d50b4a4223..0c2cd24fb2e2aa573617d72a54ad2822caab54e5 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");