mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-09 08:58:25 +03:00
config2command test: diff: use /proc/self/fd
/dev/fd works only through some compatibility hacks in some shells, use the correct one for Linux: /proc/self/fd/* Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
66c539947a
commit
e1bdc0debc
@ -137,7 +137,7 @@ sub diff($$) {
|
||||
my $ha = IO::Handle->new_from_fd($wa, 'w');
|
||||
my $hb = IO::Handle->new_from_fd($wb, 'w');
|
||||
|
||||
open my $diffproc, '-|', 'diff', '-up', "/dev/fd/$ra", "/dev/fd/$rb"
|
||||
open my $diffproc, '-|', 'diff', '-up', "/proc/self/fd/$ra", "/proc/self/fd/$rb"
|
||||
or die "failed to run program 'diff': $!";
|
||||
POSIX::close($ra);
|
||||
POSIX::close($rb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user