summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-02-18 10:23:02 +0000
committerAndrew Tridgell <tridge@samba.org>2002-02-18 10:23:02 +0000
commit1736b99a50bf3f6a082df94a1f94bc1e9796dea8 (patch)
treeda17222006f6a30cbf7f20b5ee276ab394eae616 /source3/lib
parent606fdc7c5c82ab10349fd2a594c06225932b3966 (diff)
downloadsamba-1736b99a50bf3f6a082df94a1f94bc1e9796dea8.tar.gz
samba-1736b99a50bf3f6a082df94a1f94bc1e9796dea8.tar.bz2
samba-1736b99a50bf3f6a082df94a1f94bc1e9796dea8.zip
reverted tims patch that broke configure
why does anything but smbd care about sec_init() anyway?? (This used to be commit 569505b77140c2688aeab4df058b864464f23c1d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sec.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index f79da8d2e4..dd9a64d534 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -48,8 +48,6 @@
static uid_t initial_uid;
static gid_t initial_gid;
-static BOOL sec_initialised;
-
/****************************************************************************
remember what uid we got started as - this allows us to run correctly
as non-root while catching trapdoor systems
@@ -58,8 +56,6 @@ void sec_init(void)
{
initial_uid = geteuid();
initial_gid = getegid();
-
- sec_initialised = True;
}
/****************************************************************************
@@ -67,9 +63,6 @@ some code (eg. winbindd) needs to know what uid we started as
****************************************************************************/
uid_t sec_initial_uid(void)
{
- if (!sec_initialised)
- smb_panic("sec_initial_uid() called before sec_init()\n");
-
return initial_uid;
}
@@ -78,9 +71,6 @@ some code (eg. winbindd, profiling shm) needs to know what gid we started as
****************************************************************************/
gid_t sec_initial_gid(void)
{
- if (!sec_initialised)
- smb_panic("sec_initial_gid() called before sec_init()\n");
-
return initial_gid;
}
@@ -89,9 +79,6 @@ are we running in non-root mode?
****************************************************************************/
BOOL non_root_mode(void)
{
- if (!sec_initialised)
- smb_panic("non_root_mode() called before sec_init()\n");
-
return (initial_uid != (uid_t)0);
}