diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2015-03-22 10:30:21 +0000 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2015-03-22 10:30:21 +0000 |
commit | 7a2fd5007d6d721d7a0dcae6e724f418a1c58c07 (patch) | |
tree | 6aac240a1f8bf43e93730376e3f26e9bb2751ccf | |
parent | 38700c7f24646dfbc6ac0ed529d3ed727c545cd0 (diff) | |
download | tcpdump-7a2fd5007d6d721d7a0dcae6e724f418a1c58c07.tar.gz |
fix compiling after the last change
Mind the HAVE_CAPSICUM and USE_LIBSMI cases.
-rw-r--r-- | tcpdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) |