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 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

index 08a06eabd41b2cb2230aeab5eb9de750d7d65af8..6639b85be96a78634635ff158c653dde4606cd21 100644 (file)
@@ -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");