tcpreplay: fix path to tcpdump

Without this change, running tcpreplay with -v results in:

    Fatal Error: Unable to exec tcpdump: Permission denied

The reason is that tcpreplay tries to execute exactly the path passed
via the --with-tcpdump configure switch.
This commit is contained in:
Michal Sojka 2021-12-20 08:21:14 +01:00
parent e6647de754
commit ae44e695df

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
"--enable-shared" "--enable-shared"
"--enable-tcpreplay-edit" "--enable-tcpreplay-edit"
"--with-libpcap=${libpcap}" "--with-libpcap=${libpcap}"
"--with-tcpdump=${tcpdump}/bin" "--with-tcpdump=${tcpdump}/bin/tcpdump"
]; ];
meta = with lib; { meta = with lib; {