]> err.no Git - dpkg/commit
Dpkg::IPC: avoid surprising execution via the shell
authorFrank Lichtenheld <djpig@debian.org>
Fri, 15 Feb 2008 19:41:38 +0000 (20:41 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Fri, 15 Feb 2008 19:50:20 +0000 (20:50 +0100)
commit07c81f94aa64e9b6f148c5b5cb24461708feb2b5
treee5cded3ff0802a92ff9f208a99171d3104667e97
parent71cd4f86ab08ce4a7713c83daaa5f9d3bee9cd75
Dpkg::IPC: avoid surprising execution via the shell

* scripts/Dpkg/IPC.pm (fork_and_exec): If @prog only
contains one entry exec() might execute it via the
shell if it deems it necessary. This is not intended,
so avoid this by giving $prog[0] explicetly as the
program to execute.
scripts/Dpkg/IPC.pm