mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
added sec_initial_uid() function so we can ask if a file is owned by
the initial uid (This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)
This commit is contained in:
parent
43dd159134
commit
03efd16d34
@ -58,6 +58,14 @@ void sec_init(void)
|
||||
initial_uid = geteuid();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
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?
|
||||
****************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user