X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmount_zfs%2Fmount_zfs.c;fp=cmd%2Fmount_zfs%2Fmount_zfs.c;h=7173f5698f51fbf095b4df888c50cff53c233008;hb=e130330a874f4dec6628c094455180d4113c6aa1;hp=e97b2b8a5f8822fc7c11e144369e1385af4ec5fc;hpb=2e08aedba456dccddf6418908a55014e56cad226;p=zfs.git diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c index e97b2b8..7173f56 100644 --- a/cmd/mount_zfs/mount_zfs.c +++ b/cmd/mount_zfs/mount_zfs.c @@ -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);