In set_filesystem(), call do_stat(), not link_stat() to ensure

that we get the directory behind it all.
This commit is contained in:
Wayne Davison
2004-06-11 05:02:59 +00:00
parent 9fd62d1588
commit ea76e76104

View File

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