Add error message for missing /etc/mtab
[zfs.git] / lib / libzfs / libzfs_util.c
index a4e1255..5bb88e9 100644 (file)
@@ -704,6 +704,8 @@ libzfs_init(void)
        if ((hdl->libzfs_mnttab = fopen(MNTTAB, "r")) == NULL) {
 #endif
                (void) close(hdl->libzfs_fd);
+               (void) fprintf(stderr,
+                   gettext("mtab is not present at %s.\n"), MNTTAB);
                free(hdl);
                return (NULL);
        }