summaryrefslogtreecommitdiffstats
path: root/source/lib/util_sec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/util_sec.c')
-rw-r--r--source/lib/util_sec.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/lib/util_sec.c b/source/lib/util_sec.c
index 132748ce138..08209190def 100644
--- a/source/lib/util_sec.c
+++ b/source/lib/util_sec.c
@@ -1,5 +1,6 @@
/*
- Unix SMB/CIFS implementation.
+ Unix SMB/Netbios implementation.
+ Version 2.0
Copyright (C) Jeremy Allison 1998.
rewritten for version 2.0.6 by Tridge
@@ -265,11 +266,11 @@ void restore_re_uid(void)
assert_uid(saved_ruid, saved_euid);
}
-
/****************************************************************************
- save the real and effective gid for later restoration. Used by the
+ Save the real and effective gid for later restoration. Used by the
getgroups code
****************************************************************************/
+
void save_re_gid(void)
{
saved_rgid = getgid();
@@ -277,8 +278,9 @@ void save_re_gid(void)
}
/****************************************************************************
- and restore them!
+ And restore them!
****************************************************************************/
+
void restore_re_gid(void)
{
#if USE_SETRESUID
@@ -299,7 +301,6 @@ void restore_re_gid(void)
assert_gid(saved_rgid, saved_egid);
}
-
/****************************************************************************
set the real AND effective uid to the current effective uid in a way that
allows root to be regained.