Using lstat also in Windows.

This commit is contained in:
Andrea Mazzoleni 2011-06-11 10:19:34 +02:00
parent 3d12eaaa97
commit 0365488ce9
4 changed files with 26 additions and 12 deletions

4
scan.c
View file

@ -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);
}