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

index eb7508fe12f2e65a10826887e0a71a62e9549ec8..b97f5adbdc68f2a938b5ec810aa563414582d342 100644 (file)
@@ -749,7 +749,7 @@ static int net_usershare_add(struct net_context *c, int argc, const char **argv)
        }
 
        /* Check the directory to be shared exists. */
-       if (sys_stat(us_path, &sbuf, lp_fake_dir_create_times()) != 0) {
+       if (sys_stat(us_path, &sbuf, false) != 0) {
                d_fprintf(stderr,
                        _("net usershare add: cannot stat path %s to ensure "
                          "this is a directory. Error was %s\n"),