In set_filesystem(), call do_stat(), not link_stat() to ensure
authorWayne Davison <wayned@samba.org>
Fri, 11 Jun 2004 05:02:59 +0000 (05:02 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 11 Jun 2004 05:02:59 +0000 (05:02 +0000)
that we get the directory behind it all.

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