diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-12-22 20:57:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:56 -0500 |
commit | 88d3b0814794bd0beeccef38734f98124fffa761 (patch) | |
tree | e9cd1822f9b73777952d8a5d277a968ff00462a0 /source3/groupdb | |
parent | 1501a1755c9e0eaf0d9fee80e5efcba53f541cf9 (diff) | |
download | samba-88d3b0814794bd0beeccef38734f98124fffa761.tar.gz samba-88d3b0814794bd0beeccef38734f98124fffa761.tar.bz2 samba-88d3b0814794bd0beeccef38734f98124fffa761.zip |
r12438: Remove an unused function
(This used to be commit 561e351d25b58fda4b050525aa03d18e4d88cc6c)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 97a3d6ab0e..7dc0426c44 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -887,34 +887,6 @@ BOOL get_builtin_group_from_sid(DOM_SID *sid, GROUP_MAP *map) return True; } - - -/**************************************************************************** -Returns a GROUP_MAP struct based on the gid. -****************************************************************************/ -BOOL get_group_from_gid(gid_t gid, GROUP_MAP *map) -{ - BOOL ret; - - if(!init_group_mapping()) { - DEBUG(0,("failed to initialize group mapping\n")); - return(False); - } - - if ( getgrgid(gid) == NULL) - return False; - - become_root(); - ret = pdb_getgrgid(map, gid); - unbecome_root(); - - if ( !ret ) { - return False; - } - - return True; -} - /**************************************************************************** Create a UNIX group on demand. ****************************************************************************/ |