From 9fe39ec7037a23709099582cfbf7970054fd9722 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 11 Jun 2011 10:01:08 +0200 Subject: [PATCH] Ignores symbolic links. They are not backuped. --- scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.c b/scan.c index 1ae08f5a..7f06d06a 100644 --- a/scan.c +++ b/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); }