[PATCH] type & typo

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Fri Feb 23 08:06:15 GMT 2007


As suggested by Andrew Bartlett I'm posting again this small patch
(against current SVN 3.0.25)

type:

Index: nsswitch/nss_info_template.c
===================================================================
--- nsswitch/nss_info_template.c        (revision 21511)
+++ nsswitch/nss_info_template.c        (working copy)
@@ -42,7 +42,7 @@
                                       char **homedir,
                                       char **shell,
                                       char **gecos,
-                                      uint32 *gid )
+                                      gid_t *gid )
 {
        if ( !homedir || !shell || !gecos )
                return NT_STATUS_INVALID_PARAMETER;


This patch is necessary cause:
- nsswitch/winbindd_ads.c calls nss_get_info passing a reference to a
gid_t to nss_get_info (declared correctly in nsswitch/nss_info.h)
- nss_get_info (nsswitch/nss_info.c) calls backend->get_nss_info passing
gid_t
- in nsswitch/nss_info_template.c you fill backend->get_nss_info with
nss_template_get_info (witch define gid as a uint32* instead of gid_t*)

typo:

Index: nsswitch/nss_info.c
===================================================================
--- nsswitch/nss_info.c (revision 21511)
+++ nsswitch/nss_info.c (working copy)
@@ -136,7 +136,7 @@
        struct nss_function_entry *nss_backend;
        struct nss_domain_entry *nss_domain;

-       /* The "template" backend should alqays be registered as it
+       /* The "template" backend should always be registered as it
           is a static module */

        if ( (nss_backend = nss_get_backend( "template" )) == NULL ) {


Frediano



More information about the samba-technical mailing list