]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/mount_zfs/mount_zfs.c
Add libzfs_error_init() function
[mirror_zfs.git] / cmd / mount_zfs / mount_zfs.c
index 6cdb668f54c15d15b23b3eb63aa7d7e74b47ead4..0f4995943cc4836625b70cfe68dd92ee43b19dd4 100644 (file)
@@ -473,8 +473,10 @@ main(int argc, char **argv)
        if (zfsflags & ZS_ZFSUTIL)
                zfsutil = 1;
 
-       if ((g_zfs = libzfs_init()) == NULL)
+       if ((g_zfs = libzfs_init()) == NULL) {
+               (void) fprintf(stderr, "%s", libzfs_error_init(errno));
                return (MOUNT_SYSERR);
+       }
 
        /* try to open the dataset to access the mount point */
        if ((zhp = zfs_open(g_zfs, dataset,