[Libguestfs] [PATCH v2] fuse: use the configured program name

Pino Toscano ptoscano at redhat.com
Thu Feb 2 13:32:45 UTC 2017


When initializing FUSE, use the program name as set (either
automatically or manually) in the guestfs handle.
---
 lib/fuse.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/fuse.c b/lib/fuse.c
index 0180f8f..98bbc8d 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -989,8 +989,7 @@ guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint,
     return -1;
 
   /* Create the FUSE 'args'. */
-  /* XXX we don't have a program name */
-  if (fuse_opt_add_arg (&args, "guestfs_mount_local") == -1) {
+  if (fuse_opt_add_arg (&args, g->program) == -1) {
   arg_error:
     perrorf (g, _("fuse_opt_add_arg: %s"), localmountpoint);
     fuse_opt_free_args (&args);
-- 
2.9.3




More information about the Libguestfs mailing list