1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r15529: Initialise our saved uid and gid so that we can tell when

we created the profiling shmem segment and don't bogusly
refuse to look at it.
This commit is contained in:
James Peach 2006-05-10 22:33:10 +00:00 committed by Gerald (Jerry) Carter
parent 9dac3ab328
commit eb31ef3a0e
2 changed files with 7 additions and 2 deletions

View 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;
}

View 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);