From 2a7778f7b20b77b82bd4a78609586025ea4a3330 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 27 Nov 2009 13:04:18 +0100 Subject: s3: "net_usershare_add" only looks at the device and inode --- source3/utils/net_usershare.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c index b97f5adbdc..1085796a9e 100644 --- a/source3/utils/net_usershare.c +++ b/source3/utils/net_usershare.c @@ -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 ); -- cgit