mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fuse: Don't use errno if libfuse fuse_mount fails.
libfuse prints errors on stderr and there seems to be no way to change that. It doesn't make any attempt to preserve errno either, so printing an error based on errno is wrong. Thanks: Assaf Gordon.
This commit is contained in:
@@ -1015,7 +1015,8 @@ guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint,
|
||||
/* Create the FUSE mountpoint. */
|
||||
ch = fuse_mount (localmountpoint, &args);
|
||||
if (ch == NULL) {
|
||||
perrorf (g, _("fuse_mount: %s"), localmountpoint);
|
||||
error (g, _("fuse_mount failed: %s, see error messages above"),
|
||||
localmountpoint);
|
||||
fuse_opt_free_args (&args);
|
||||
guestfs_int_free_fuse (g);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user