r15529: Initialise our saved uid and gid so that we can tell when
authorJames Peach <jpeach@samba.org>
Wed, 10 May 2006 22:33:10 +0000 (22:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:56 +0000 (11:16 -0500)
we created the profiling shmem segment and don't bogusly
refuse to look at it.

source/profile/profile.c
source/utils/status.c

index bacf00eb01706538f45a3449bac1ddf6a758bd97..ba9596301c6491d3a25e615b34749c5a8d903337 100644 (file)
@@ -158,8 +158,12 @@ BOOL profile_setup(BOOL rdonly)
                return False;
        }
 
-       if (shm_ds.shm_perm.cuid != sec_initial_uid() || shm_ds.shm_perm.cgid != sec_initial_gid()) {
-               DEBUG(0,("ERROR: we did not create the shmem (owned by another user)\n"));
+       if (shm_ds.shm_perm.cuid != sec_initial_uid() ||
+           shm_ds.shm_perm.cgid != sec_initial_gid()) {
+               DEBUG(0,("ERROR: we did not create the shmem "
+                        "(owned by another user, uid %u, gid %u)\n",
+                        shm_ds.shm_perm.cuid,
+                        shm_ds.shm_perm.cgid));
                return False;
        }
 
index bc26be1ec937735e4e1ae7e812e74f2e5f766751..05075da444fbb9fd76d26ad4cb1df65fc3ff8dfc 100644 (file)
@@ -622,6 +622,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
                POPT_TABLEEND
        };
 
+       sec_init();
        load_case_tables();
 
        setup_logging(argv[0],True);