You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
645 B

  1. From 63012853a81aa623f09304baf1f5b0b69f1ebfbd Mon Sep 17 00:00:00 2001
  2. From: Tristian <2220506+Tristian@users.noreply.github.com>
  3. Date: Tue, 16 Mar 2021 16:17:07 -0400
  4. Subject: [PATCH] fix assignment of read-only variable 'stdout'
  5. - stdout cannot be reassigned on some systems i.e OpenWRT on mipsel
  6. ---
  7. hcxdumptool.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. --- a/hcxdumptool.c
  10. +++ b/hcxdumptool.c
  11. @@ -7958,7 +7958,7 @@ while((auswahl = getopt_long(argc, argv,
  12. else
  13. {
  14. fd_pcapng = fileno(stdout);
  15. - stdout = fopen("/dev/null", "w");
  16. + freopen("/dev/null", "w", stdout);
  17. }
  18. }
  19. pcapngoutname = optarg;