Call "get_credential_info()", so any later calls to privileges.c
authorGuy Harris <guy@alum.mit.edu>
Wed, 8 Feb 2006 10:22:20 +0000 (10:22 -0000)
committerGuy Harris <guy@alum.mit.edu>
Wed, 8 Feb 2006 10:22:20 +0000 (10:22 -0000)
routines will have the UID info (not that it matters in this case,
but...).

svn path=/trunk/; revision=17216

dftest.c

index 75fa9aa82e98b6f0f8ae0ca5c60f630455092b0a..96cb58c2e2d0fa163ad0f70a347044ad50e89f8a 100644 (file)
--- a/dftest.c
+++ b/dftest.c
@@ -43,6 +43,7 @@
 #include <epan/timestamp.h>
 #include <epan/plugins.h>
 #include <epan/filesystem.h>
+#include <epan/privileges.h>
 #include <epan/prefs.h>
 #include "util.h"
 #include "epan/dfilter/dfilter.h"
@@ -65,6 +66,11 @@ main(int argc, char **argv)
        e_prefs         *prefs;
        dfilter_t       *df;
 
+       /*
+        * Get credential information for later use.
+        */
+       get_credential_info();
+
        timestamp_set_type(TS_RELATIVE);
 
        /* register all dissectors; we must do this before checking for the