summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-08 18:22:46 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-08 18:22:46 +0000
commit03efd16d3465473f58dc7b91b7c45396dfa89f5a (patch)
tree503a9771a61ded548ab813b5e9c0d45372dd4c10
parent43dd15913468f35a0d3352530f8e0c403f194521 (diff)
downloadsamba-03efd16d3465473f58dc7b91b7c45396dfa89f5a.tar.gz
samba-03efd16d3465473f58dc7b91b7c45396dfa89f5a.tar.bz2
samba-03efd16d3465473f58dc7b91b7c45396dfa89f5a.zip
added sec_initial_uid() function so we can ask if a file is owned by
the initial uid (This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)
-rw-r--r--source3/lib/util_sec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index 5b8bdb44c1..985b07f421 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -59,6 +59,14 @@ void sec_init(void)
}
/****************************************************************************
+some code (eg. winbindd) needs to know what uid we started as
+****************************************************************************/
+uid_t sec_initial_uid(void)
+{
+ return initial_uid;
+}
+
+/****************************************************************************
are we running in non-root mode?
****************************************************************************/
BOOL non_root_mode(void)