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:
parent
9d5e026bde
commit
1144b0dc04
@ -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 ));
|
||||||
|
Loading…
Reference in New Issue
Block a user