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:
parent
43f275008f
commit
2a82c45f02
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user