From fadce8d3e7cffd4eadc982e330285a93a3486368 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 25 Feb 2016 11:37:16 +0000 Subject: [PATCH] fish: Set program name correctly for virt-{copy,tar}-{in,out} programs. Set the (libguestfs handle) program name correctly when running programs like virt-copy-in, so the program name is not "guestfish" but "virt-copy-in". Note this feature cannot be tested using the ./run script, since libtool (buggily) resets the program name to "lt-guestfish". However I tested it on the installed copy and it worked there. --- fish/virt-copy-in | 2 +- fish/virt-copy-out | 2 +- fish/virt-tar-in | 2 +- fish/virt-tar-out | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fish/virt-copy-in b/fish/virt-copy-in index d1be1b20f..4bdccfb29 100755 --- a/fish/virt-copy-in +++ b/fish/virt-copy-in @@ -24,4 +24,4 @@ for arg in $@; do esac done -exec guestfish --rw -i copy-in "$@" +exec -a "$0" guestfish --rw -i copy-in "$@" diff --git a/fish/virt-copy-out b/fish/virt-copy-out index 2648a4d34..ff6938892 100755 --- a/fish/virt-copy-out +++ b/fish/virt-copy-out @@ -24,4 +24,4 @@ for arg in $@; do esac done -exec guestfish --ro -i copy-out "$@" +exec -a "$0" guestfish --ro -i copy-out "$@" diff --git a/fish/virt-tar-in b/fish/virt-tar-in index dca1bbed4..066f27d33 100755 --- a/fish/virt-tar-in +++ b/fish/virt-tar-in @@ -24,4 +24,4 @@ for arg in $@; do esac done -exec guestfish --rw -i tar-in "$@" +exec -a "$0" guestfish --rw -i tar-in "$@" diff --git a/fish/virt-tar-out b/fish/virt-tar-out index 4a83e4010..9cc6d7e44 100755 --- a/fish/virt-tar-out +++ b/fish/virt-tar-out @@ -24,4 +24,4 @@ for arg in $@; do esac done -exec guestfish --ro -i tar-out "$@" +exec -a "$0" guestfish --ro -i tar-out "$@"