1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Use new common function.

This commit is contained in:
Jeremy Allison 2012-07-09 12:28:48 -07:00
parent 9d5e026bde
commit 1144b0dc04

View File

@ -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 ? */ /* 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); close(fd);
DEBUG(0,("process_usershare_file: fstat of %s is a different file from lstat. " DEBUG(0,("process_usershare_file: fstat of %s is a different file from lstat. "
"Symlink spoofing going on ?\n", fname )); "Symlink spoofing going on ?\n", fname ));