summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/profile/profile.c8
-rw-r--r--source3/utils/status.c1
2 files changed, 7 insertions, 2 deletions
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;
}
diff --git a/source3/utils/status.c b/source3/utils/status.c
index bc26be1ec9..05075da444 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -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);