mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Remove some unused code
(This used to be commit 87383a4605ab99d32fccae7793dc5292b8f3e25b)
This commit is contained in:
parent
3643aa9a63
commit
89ac43d498
@ -22,29 +22,6 @@
|
||||
/* what user is current? */
|
||||
extern struct current_user current_user;
|
||||
|
||||
/****************************************************************************
|
||||
Iterator functions for getting all gid's from current_user.
|
||||
****************************************************************************/
|
||||
|
||||
gid_t get_current_user_gid_first(int *piterator)
|
||||
{
|
||||
*piterator = 0;
|
||||
return current_user.ut.gid;
|
||||
}
|
||||
|
||||
gid_t get_current_user_gid_next(int *piterator)
|
||||
{
|
||||
gid_t ret;
|
||||
|
||||
if (!current_user.ut.groups || *piterator >= current_user.ut.ngroups) {
|
||||
return (gid_t)-1;
|
||||
}
|
||||
|
||||
ret = current_user.ut.groups[*piterator];
|
||||
(*piterator) += 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Become the guest user without changing the security context stack.
|
||||
****************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user