summaryrefslogtreecommitdiff
path: root/source3/utils/status.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-29 02:59:22 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-29 02:59:22 +0000
commit87ea4b93ecde16a4156c9c307ad477537a837ef4 (patch)
treec377ec3ee10eb8093cb8159348820d2b291442e2 /source3/utils/status.c
parentcb6941a19390113cbe61f436e74c9d969afd00d0 (diff)
downloadsamba-87ea4b93ecde16a4156c9c307ad477537a837ef4.tar.gz
samba-87ea4b93ecde16a4156c9c307ad477537a837ef4.tar.bz2
samba-87ea4b93ecde16a4156c9c307ad477537a837ef4.zip
damn. We need root privilages to do semaphore operations even if we
have done the semget() as root. The problem is that become_root() and unbecome_root() are so slow! I've provided two options. The default is to set the semaphores (but _not_ the shared memory) world writeable so that a become_root() isn't needed. Otherwise you can define SECURE_SEMAPHORES and pay the performance penalty. (This used to be commit 2bbd8d2cbc5cf1901859a181bc9ec29822995e51)
Diffstat (limited to 'source3/utils/status.c')
-rw-r--r--source3/utils/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index f124d79939..1a05f2b1af 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -58,6 +58,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */
void unbecome_root(BOOL restore_dir) {}
connection_struct Connections[MAX_CONNECTIONS];
files_struct Files[MAX_OPEN_FILES];
+struct current_user current_user;
static void print_share_mode(share_mode_entry *e, char *fname)