git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d5e026
)
Use new common function.
author
Jeremy Allison
<jra@samba.org>
Mon, 9 Jul 2012 19:28:48 +0000
(12:28 -0700)
committer
Jeremy Allison
<jra@samba.org>
Mon, 9 Jul 2012 19:28:48 +0000
(12:28 -0700)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 12ba2f1d3b9a487a5b14ab82aa5109163af86c2d..f8e7aced50aaa4ed8f52570fcb3fc2c822cecbcf 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-8304,7
+8304,7
@@
static int process_usershare_file(const char *dir_name, const char *file_name, i
}
/* Is it the same dev/inode as was lstated ? */
- if (
lsbuf.st_ex_dev != sbuf.st_ex_dev || lsbuf.st_ex_ino != sbuf.st_ex_ino
) {
+ if (
!check_same_stat(&lsbuf, &sbuf)
) {
close(fd);
DEBUG(0,("process_usershare_file: fstat of %s is a different file from lstat. "
"Symlink spoofing going on ?\n", fname ));