In set_filesystem(), call do_stat(), not link_stat() to ensure
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 0bb1444..9fafd92 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -250,7 +250,7 @@ static dev_t filesystem_dev;
 static void set_filesystem(char *fname)
 {
        STRUCT_STAT st;
-       if (link_stat(fname, &st) != 0)
+       if (do_stat(fname, &st) != 0)
                return;
        filesystem_dev = st.st_dev;
 }