The branch, master has been updated
       via  55f2cb18adf4bed0e6770bc33278ef6bf0c64e17 (commit)
      from  3accf9e80f52d4beba8fd4988d17e563e4e70325 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 55f2cb18adf4bed0e6770bc33278ef6bf0c64e17
Author: Michael Adam <ob...@samba.org>
Date:   Fri Feb 6 10:42:11 2009 +0100

    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

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_conf.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 31e87ca..0c2cd24 100644
--- a/source3/utils/net_conf.c
+++ b/source3/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");


-- 
Samba Shared Repository

Reply via email to