mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
Using lstat also in Windows.
This commit is contained in:
parent
3d12eaaa97
commit
0365488ce9
4 changed files with 26 additions and 12 deletions
4
scan.c
4
scan.c
|
|
@ -258,9 +258,9 @@ static void scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, s
|
|||
continue;
|
||||
}
|
||||
|
||||
#if HAVE_STAT_INODE
|
||||
#if HAVE_LSTAT_INODE
|
||||
/* get inode info about the file, Windows needs an additional step */
|
||||
if (stat_inode(path_next, &st) != 0) {
|
||||
if (lstat_inode(path_next, &st) != 0) {
|
||||
fprintf(stderr, "Error in stat_inode file '%s'. %s.\n", path_next, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue