]> The Tcpdump Group git mirrors - tcpdump/commitdiff
fix compiling after the last change
authorDenis Ovsienko <[email protected]>
Sun, 22 Mar 2015 10:30:21 +0000 (10:30 +0000)
committerDenis Ovsienko <[email protected]>
Sun, 22 Mar 2015 10:30:21 +0000 (10:30 +0000)
Mind the HAVE_CAPSICUM and USE_LIBSMI cases.

tcpdump.c

index 7e8091489320f73bad05bc6b81222d7cd17d5443..f8c0b3bd8d9f618bc8f0e26826efe87934b28d1d 100644 (file)
--- 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())