[SCM] Samba Shared Repository - branch v3-5-test updated

Karolin Seeger kseeger at samba.org
Wed Jun 1 12:39:17 MDT 2011


The branch, v3-5-test has been updated
       via  0ffdf22 Fix bug #7528 - Solaris with NIS autohome.
      from  ac4aca9 WHATSNEW: Start to add changes since 3.5.8.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 0ffdf2288b1e6798e43259568818378c43b979e5
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Jun 1 20:38:48 2011 +0200

    Fix bug #7528 - Solaris with NIS autohome.

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

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 46be349..238981d 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1312,6 +1312,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


More information about the samba-cvs mailing list