The branch, master has been updated
       via  37264e5... Fix bug 7528 - Solaris with NIS autohome.
      from  1e897f6... s4-smbtorture: add "printerdata_values" test to 
RPC-SPOOLSS-PRINTER.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 37264e5917cace1582f41d6029a857fd4059eff6
Author: Jeremy Allison <[email protected]>
Date:   Tue Jun 22 12:19:05 2010 -0700

    Fix bug 7528 - Solaris with NIS autohome.
    
    Ensure entries containing "\n" are stripped.
    
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/util.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/util.c b/source3/lib/util.c
index 88e4557..d7e765d 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1253,6 +1253,9 @@ char *automount_lookup(TALLOC_CTX *ctx, const char 
*user_name)
        if ((nis_error = yp_match(nis_domain, nis_map, user_name,
                                        strlen(user_name), &nis_result,
                                        &nis_result_len)) == 0) {
+               if (nis_result_len > 0 && nis_result[nis_result_len] == '\n') {
+                       nis_result[nis_result_len] = '\0';
+               }
                value = talloc_strdup(ctx, nis_result);
                if (!value) {
                        return NULL;


-- 
Samba Shared Repository

Reply via email to