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.
This commit is contained in:
Richard W.M. Jones
2016-02-25 11:37:16 +00:00
parent 7b11fb16ec
commit fadce8d3e7
4 changed files with 4 additions and 4 deletions

View File

@@ -24,4 +24,4 @@ for arg in $@; do
esac
done
exec guestfish --rw -i copy-in "$@"
exec -a "$0" guestfish --rw -i copy-in "$@"

View File

@@ -24,4 +24,4 @@ for arg in $@; do
esac
done
exec guestfish --ro -i copy-out "$@"
exec -a "$0" guestfish --ro -i copy-out "$@"

View File

@@ -24,4 +24,4 @@ for arg in $@; do
esac
done
exec guestfish --rw -i tar-in "$@"
exec -a "$0" guestfish --rw -i tar-in "$@"

View File

@@ -24,4 +24,4 @@ for arg in $@; do
esac
done
exec guestfish --ro -i tar-out "$@"
exec -a "$0" guestfish --ro -i tar-out "$@"