[SCM] Samba Shared Repository - branch master updated

Michael Adam obnox at samba.org
Fri Jun 10 09:39:02 MDT 2011


The branch, master has been updated
       via  730ea92 s3:net conf addshare: do not stat-check the share path.
      from  cd16a1b source3/rpc_client/util_netlogon.h: fix licence/copyright

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


- Log -----------------------------------------------------------------
commit 730ea92208f6f4216608ed26964d788b0b21f088
Author: Michael Adam <obnox at samba.org>
Date:   Fri Jun 10 13:51:06 2011 +0200

    s3:net conf addshare: do not stat-check the share path.
    
    Allow paths with % macros and paths that do not (yet...) exist.
    
    Autobuild-User: Michael Adam <obnox at samba.org>
    Autobuild-Date: Fri Jun 10 17:38:07 CEST 2011 on sn-devel-104

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

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


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 0ae1206..9381159 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -585,7 +585,6 @@ static int net_conf_addshare(struct net_context *c,
 	const char *comment = NULL;
 	const char *guest_ok = "no";
 	const char *writeable = "no";
-	SMB_STRUCT_STAT sbuf;
 	TALLOC_CTX *mem_ctx = talloc_stackframe();
 
 	if (c->display_usage) {
@@ -685,22 +684,6 @@ static int net_conf_addshare(struct net_context *c,
 		goto done;
 	}
 
-	if (sys_stat(path, &sbuf, false) != 0) {
-		d_fprintf(stderr,
-			  _("ERROR: cannot stat path '%s' to ensure "
-			    "this is a directory.\n"
-			    "Error was '%s'.\n"),
-			  path, strerror(errno));
-		goto done;
-	}
-
-	if (!S_ISDIR(sbuf.st_ex_mode)) {
-		d_fprintf(stderr,
-			  _("ERROR: path '%s' is not a directory.\n"),
-			  path);
-		goto done;
-	}
-
 	/*
 	 * start a transaction
 	 */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list