s3: "net_usershare_add" only looks at the mode, device and inode
authorVolker Lendecke <vl@samba.org>
Fri, 27 Nov 2009 12:04:38 +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 1085796a9e4ce8dcefdb08d4688aefc7875e12d3..7a688c1330bffcf019d23bc380df1468880b2d4f 100644 (file)
@@ -901,7 +901,7 @@ static int net_usershare_add(struct net_context *c, int argc, const char **argv)
        }
 
        /* Check this is the same as the file we opened. */
-       if (sys_fstat(tmpfd, &sbuf, lp_fake_dir_create_times()) != 0) {
+       if (sys_fstat(tmpfd, &sbuf, false) != 0) {
                d_fprintf(stderr,
                          _("net usershare add: cannot fstat tmp file %s\n"),
                          full_path_tmp );