git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad2be46
)
s3: "net_usershare_add" only looks at the device and inode
author
Volker Lendecke
<vl@samba.org>
Fri, 27 Nov 2009 12:04:18 +0000
(13:04 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 29 Nov 2009 11:04:07 +0000
(12:04 +0100)
source3/utils/net_usershare.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_usershare.c
b/source3/utils/net_usershare.c
index b97f5adbdc68f2a938b5ec810aa563414582d342..1085796a9e4ce8dcefdb08d4688aefc7875e12d3 100644
(file)
--- 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 );