summaryrefslogtreecommitdiffstats
path: root/source/profile
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-05-10 22:33:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:56 -0500
commiteb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2 (patch)
treec2fab2253b55e52ab2bb5971408705fac2d154b1 /source/profile
parent9dac3ab328e9c7ba374e0efc3fe16d940ecc9d3b (diff)
downloadsamba-eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2.tar.gz
samba-eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2.tar.xz
samba-eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2.zip
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.
Diffstat (limited to 'source/profile')
-rw-r--r--source/profile/profile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/profile/profile.c b/source/profile/profile.c
index bacf00eb017..ba9596301c6 100644
--- a/source/profile/profile.c
+++ b/source/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;
}