summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2015-03-22 10:30:21 +0000
committerDenis Ovsienko <denis@ovsienko.info>2015-03-22 10:30:21 +0000
commit7a2fd5007d6d721d7a0dcae6e724f418a1c58c07 (patch)
tree6aac240a1f8bf43e93730376e3f26e9bb2751ccf
parent38700c7f24646dfbc6ac0ed529d3ed727c545cd0 (diff)
downloadtcpdump-7a2fd5007d6d721d7a0dcae6e724f418a1c58c07.tar.gz
fix compiling after the last change
Mind the HAVE_CAPSICUM and USE_LIBSMI cases.
-rw-r--r--tcpdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 7e809148..f8c0b3bd 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1220,7 +1220,7 @@ main(int argc, char **argv)
if (smiLoadModule(optarg) == 0) {
error("could not load MIB module %s", optarg);
}
- sflag = 1;
+ gndo->ndo_sflag = 1;
#else
(void)fprintf(stderr, "%s: ignoring option `-m %s' ",
program_name, optarg);
@@ -1958,7 +1958,7 @@ main(int argc, char **argv)
#endif /* WIN32 */
#ifdef HAVE_CAPSICUM
- cansandbox = (nflag && VFileName == NULL && zflag == NULL);
+ cansandbox = (gndo->ndo_nflag && VFileName == NULL && zflag == NULL);
if (cansandbox && cap_enter() < 0 && errno != ENOSYS)
error("unable to enter the capability mode");
if (cap_sandboxed())