diff options
author | Jeremy Allison <jra@samba.org> | 2012-07-09 12:28:48 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-09 12:28:48 -0700 |
commit | 1144b0dc043c42e4845316a4ccc3bdd49bfda822 (patch) | |
tree | 84d2019c53cfddd54f342526f08fc19518a00496 /source3 | |
parent | 9d5e026bde837ed853478a223e2823fd35c67d26 (diff) | |
download | samba-1144b0dc043c42e4845316a4ccc3bdd49bfda822.tar.gz samba-1144b0dc043c42e4845316a4ccc3bdd49bfda822.tar.bz2 samba-1144b0dc043c42e4845316a4ccc3bdd49bfda822.zip |
Use new common function.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 12ba2f1d3b..f8e7aced50 100644 --- 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 )); |