1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib/util: Remove dummy wrapper for getgrnam().

This commit is contained in:
Jelmer Vernooij 2012-03-24 15:25:48 +01:00
parent 43f275008f
commit 2a82c45f02
4 changed files with 3 additions and 9 deletions

View File

@ -29,14 +29,9 @@
#include "lib/util/util_pw.h"
/**************************************************************************
Wrappers for getgrnam(), getgrgid()
Wrappers for getgrgid()
****************************************************************************/
struct group *sys_getgrnam(const char *name)
{
return getgrnam(name);
}
struct group *sys_getgrgid(gid_t gid)
{
return getgrgid(gid);

View File

@ -24,7 +24,6 @@
#ifndef __LIB_UTIL_UTIL_PW_H__
#define __LIB_UTIL_UTIL_PW_H__
struct group *sys_getgrnam(const char *name);
struct group *sys_getgrgid(gid_t gid);
struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
const struct passwd *from);

View File

@ -844,7 +844,7 @@ gid_t nametogid(const char *name)
if ((p != name) && (*p == '\0'))
return g;
grp = sys_getgrnam(name);
grp = getgrnam(name);
if (grp)
return(grp->gr_gid);
return (gid_t)-1;

View File

@ -103,7 +103,7 @@ bool lookup_unix_group_name(const char *name, struct dom_sid *sid)
{
struct group *grp;
grp = sys_getgrnam(name);
grp = getgrnam(name);
if (grp == NULL) {
return False;
}