mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Ignores symbolic links. They are not backuped.
This commit is contained in:
parent
f8d2c91a96
commit
9fe39ec703
1 changed files with 1 additions and 1 deletions
2
scan.c
2
scan.c
|
|
@ -244,7 +244,7 @@ static void scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, s
|
|||
pathprint(sub_next, sizeof(sub_next), "%s%s", sub, name);
|
||||
|
||||
/* get info about the file */
|
||||
if (stat(path_next, &st) != 0) {
|
||||
if (lstat(path_next, &st) != 0) {
|
||||
fprintf(stderr, "Error in stat file/directory '%s'. %s.\n", path_next, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue