File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1034
1034
.B \- z bzip2
1035
1035
will compress each savefile using gzip or bzip2.
1036
1036
.IP
1037
+ This option can only be used if fork subprocess is implemented (e.g. not on Windows systems).
1038
+ .IP
1037
1039
Note that tcpdump will run the command in parallel to the capture, using
1038
1040
the lowest priority so that this doesn't disturb the capture process.
1039
1041
.IP
Original file line number Diff line number Diff line change @@ -616,7 +616,15 @@ show_remote_devices_and_exit(void)
616
616
#define m_FLAG_USAGE "[ -m module ] ..."
617
617
#endif
618
618
619
- #define SHORTOPTS "aAbB:c:C:dDeE:fF:G:hHi:I" j_FLAG J_FLAG "KlLm:M:nNOpqQ:r:s:StT:uUvV:w:W:xXy:Yz:Z:#"
619
+ #if defined(HAVE_FORK ) || defined(HAVE_VFORK )
620
+ #define z_FLAG "z:"
621
+ #define z_FLAG_USAGE "[ -z postrotate-command ] "
622
+ #else
623
+ #define z_FLAG
624
+ #define z_FLAG_USAGE
625
+ #endif
626
+
627
+ #define SHORTOPTS "aAbB:c:C:dDeE:fF:G:hHi:I" j_FLAG J_FLAG "KlLm:M:nNOpqQ:r:s:StT:uUvV:w:W:xXy:Y" z_FLAG "Z:#"
620
628
621
629
/*
622
630
* Long options.
@@ -2014,13 +2022,12 @@ main(int argc, char **argv)
2014
2022
}
2015
2023
break ;
2016
2024
#endif
2017
- case 'z' :
2025
+
2018
2026
#if defined(HAVE_FORK ) || defined(HAVE_VFORK )
2027
+ case 'z' :
2019
2028
zflag = optarg ;
2020
- #else
2021
- error ("-z cannot be used. Fork subprocess not implemented." );
2022
- #endif
2023
2029
break ;
2030
+ #endif
2024
2031
2025
2032
case 'Z' :
2026
2033
username = optarg ;
@@ -3484,5 +3491,5 @@ print_usage(FILE *f)
3484
3491
"\t\t[ --time-stamp-precision precision ] [ --micro ] [ --nano ]\n" );
3485
3492
#endif
3486
3493
(void )fprintf (f ,
3487
- "\t\t[ -z postrotate-command ] [ -Z user ] [ expression ]\n" );
3494
+ "\t\t" z_FLAG_USAGE " [ -Z user ] [ expression ]\n" );
3488
3495
}
You can’t perform that action at this time.
0 commit comments