From ae44e695df8f62d772c9548cc7fa350ff399845c Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 20 Dec 2021 08:21:14 +0100 Subject: [PATCH] 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. --- pkgs/tools/networking/tcpreplay/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/tcpreplay/default.nix b/pkgs/tools/networking/tcpreplay/default.nix index ed83e4d45549..6e2fb35fd4c2 100644 --- a/pkgs/tools/networking/tcpreplay/default.nix +++ b/pkgs/tools/networking/tcpreplay/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { "--enable-shared" "--enable-tcpreplay-edit" "--with-libpcap=${libpcap}" - "--with-tcpdump=${tcpdump}/bin" + "--with-tcpdump=${tcpdump}/bin/tcpdump" ]; meta = with lib; {