[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-2025-g9dad053
Stefan Metzmacher
metze at samba.org
Thu Jun 4 15:23:37 GMT 2009
The branch, master has been updated
via 9dad0536d6e91cb993edd636f7659d2351d98000 (commit)
from 74330085ecad1d7ab686f5cc421fdc66022f0da7 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 9dad0536d6e91cb993edd636f7659d2351d98000
Author: Stefan Metzmacher <metze at samba.org>
Date: Thu Jun 4 17:12:40 2009 +0200
nss_wrapper: call the nwrap_files_*() from nwrap_files_*_r()
We should not call the public functions, as this could lead
to a recursive loop when we have multiple nwrap backends
in future.
This also fixes the build if --enable-nss-wrapper was not
given to ./configure.
metze
-----------------------------------------------------------------------
Summary of changes:
lib/nss_wrapper/nss_wrapper.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index 4384c3f..8789906 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -892,7 +892,7 @@ static int nwrap_files_getpwnam_r(const char *name, struct passwd *pwdst,
{
struct passwd *pw;
- pw = nwrap_getpwnam(name);
+ pw = nwrap_files_getpwnam(name);
if (!pw) {
if (errno == 0) {
return ENOENT;
@@ -931,7 +931,7 @@ static int nwrap_files_getpwuid_r(uid_t uid, struct passwd *pwdst,
{
struct passwd *pw;
- pw = nwrap_getpwuid(uid);
+ pw = nwrap_files_getpwuid(uid);
if (!pw) {
if (errno == 0) {
return ENOENT;
@@ -974,7 +974,7 @@ static int nwrap_files_getpwent_r(struct passwd *pwdst, char *buf,
{
struct passwd *pw;
- pw = nwrap_getpwent();
+ pw = nwrap_files_getpwent();
if (!pw) {
if (errno == 0) {
return ENOENT;
@@ -1026,7 +1026,7 @@ static int nwrap_files_getgrnam_r(const char *name, struct group *grdst,
{
struct group *gr;
- gr = nwrap_getgrnam(name);
+ gr = nwrap_files_getgrnam(name);
if (!gr) {
if (errno == 0) {
return ENOENT;
@@ -1065,7 +1065,7 @@ static int nwrap_files_getgrgid_r(gid_t gid, struct group *grdst,
{
struct group *gr;
- gr = nwrap_getgrgid(gid);
+ gr = nwrap_files_getgrgid(gid);
if (!gr) {
if (errno == 0) {
return ENOENT;
@@ -1074,8 +1074,6 @@ static int nwrap_files_getgrgid_r(gid_t gid, struct group *grdst,
}
return nwrap_gr_copy_r(gr, grdst, buf, buflen, grdstp);
-
- return ENOENT;
}
/* group enum functions */
@@ -1110,7 +1108,7 @@ static int nwrap_files_getgrent_r(struct group *grdst, char *buf,
{
struct group *gr;
- gr = nwrap_getgrent();
+ gr = nwrap_files_getgrent();
if (!gr) {
if (errno == 0) {
return ENOENT;
@@ -1144,7 +1142,7 @@ static int nwrap_files_getgrouplist(const char *user, gid_t group, gid_t *groups
memcpy(groups_tmp, &group, sizeof(gid_t));
- grp = nwrap_getgrgid(group);
+ grp = nwrap_files_getgrgid(group);
if (grp) {
name_of_group = grp->gr_name;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list