]> The Tcpdump Group git mirrors - tcpdump/commitdiff
save stderr to file in case it is useful
authorMichael Richardson <[email protected]>
Sun, 18 Aug 2019 20:52:56 +0000 (16:52 -0400)
committerMichael Richardson <[email protected]>
Sun, 18 Aug 2019 22:04:09 +0000 (18:04 -0400)
tests/TESTonce

index 79336b4d9c741b9f6a483775cc6bd9e5bf7bbc0c..a52b7f7b75a160115bd00206cae41fefea60a12d 100755 (executable)
@@ -30,7 +30,7 @@ if ($^O eq 'MSWin32') {
 else {
     # we used to do this as a nice pipeline, but the problem is that $r fails to
     # to be set properly if the tcpdump core dumps.
-    $r = system "$TCPDUMP 2>/dev/null -# -n -r $input $options >NEW/$outputbase";
+    $r = system "$TCPDUMP 2>NEW/$outputbase.stderr -# -n -r $input $options >NEW/$outputbase";
     if($r != 0) {
         my $coredump = false;
         my $status = 0;