s3: "net_conf_addshare" only looks at the mode
authorVolker Lendecke <vl@samba.org>
Fri, 27 Nov 2009 12:05:16 +0000 (13:05 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 29 Nov 2009 10:22:03 +0000 (11:22 +0100)
source3/utils/net_conf.c

index 736871f215b7d848fc2622fa80374a30c7e061fc..106a53246d3e3e3ab2a6446a5e3b418d792255d0 100644 (file)
@@ -654,7 +654,7 @@ static int net_conf_addshare(struct net_context *c,
                goto done;
        }
 
-       if (sys_stat(path, &sbuf, lp_fake_dir_create_times()) != 0) {
+       if (sys_stat(path, &sbuf, false) != 0) {
                d_fprintf(stderr,
                          _("ERROR: cannot stat path '%s' to ensure "
                            "this is a directory.\n"