summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-27 13:04:18 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-08 09:15:04 +0100
commit65f8b6f04a8e7002f78f57e3616982dc1966c214 (patch)
treef425b1a3b0761009f084bf0f85bc57f07d6a10a8 /source3/utils
parentc31115c8b5826dae6a73cfaf0393ec6b684859ad (diff)
downloadsamba-65f8b6f04a8e7002f78f57e3616982dc1966c214.tar.gz
s3: "net_usershare_add" only looks at the device and inode
(cherry picked from commit 50a3344ac87669de665d5ac7a5a9ad63d14f7e38)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_usershare.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index b97f5adbdc6..1085796a9e4 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 );