From 8de0dcb3d917956d3f8a32664d0fec57e5559753 Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 10 May 2006 22:33:10 +0000 Subject: 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 used to be commit eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2) --- source3/profile/profile.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/profile') diff --git a/source3/profile/profile.c b/source3/profile/profile.c index bacf00eb01..ba9596301c 100644 --- a/source3/profile/profile.c +++ b/source3/profile/profile.c @@ -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; } -- cgit