]> git.samba.org - amitay/samba.git/commitdiff
s3: "net_usershare_add" only looks at the device and inode
authorVolker Lendecke <vl@samba.org>
Fri, 27 Nov 2009 12:04:18 +0000 (13:04 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 29 Nov 2009 10:22:03 +0000 (11:22 +0100)
source3/utils/net_usershare.c

index b97f5adbdc68f2a938b5ec810aa563414582d342..1085796a9e4ce8dcefdb08d4688aefc7875e12d3 100644 (file)
@@ -892,8 +892,7 @@ static int net_usershare_add(struct net_context *c, int argc, const char **argv)
        }
 
        /* Ensure we opened the file we thought we did. */
-       if (sys_lstat(full_path_tmp, &lsbuf, lp_fake_dir_create_times())
-           != 0) {
+       if (sys_lstat(full_path_tmp, &lsbuf, false) != 0) {
                d_fprintf(stderr,
                          _("net usershare add: cannot lstat tmp file %s\n"),
                          full_path_tmp );