mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -24,4 +24,4 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
exec guestfish --rw -i copy-in "$@"
|
||||
exec -a "$0" guestfish --rw -i copy-in "$@"
|
||||
|
||||
@@ -24,4 +24,4 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
exec guestfish --ro -i copy-out "$@"
|
||||
exec -a "$0" guestfish --ro -i copy-out "$@"
|
||||
|
||||
@@ -24,4 +24,4 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
exec guestfish --rw -i tar-in "$@"
|
||||
exec -a "$0" guestfish --rw -i tar-in "$@"
|
||||
|
||||
@@ -24,4 +24,4 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
exec guestfish --ro -i tar-out "$@"
|
||||
exec -a "$0" guestfish --ro -i tar-out "$@"
|
||||
|
||||
Reference in New Issue
Block a user