Handle /etc/mtab -> /proc/mounts symlink
[zfs.git] / cmd / mount_zfs / mount_zfs.c
index e97b2b8..7173f56 100644 (file)
@@ -252,7 +252,7 @@ mtab_is_writeable(void)
        struct stat st;
        int error, fd;
 
-       error = stat(MNTTAB, &st);
+       error = lstat(MNTTAB, &st);
        if (error || S_ISLNK(st.st_mode))
                return (0);