[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4648-g7eea7ed

Tim Prouty tprouty at samba.org
Fri Dec 12 00:01:39 GMT 2008


The branch, v3-3-test has been updated
       via  7eea7edfd02778599771edd3356888c848578766 (commit)
      from  7a3091a48b844bbad93c61a0570fd23bd87f76e1 (commit)

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


- Log -----------------------------------------------------------------
commit 7eea7edfd02778599771edd3356888c848578766
Author: Dan Sledz <dsledz at isilon.com>
Date:   Mon Dec 8 14:52:14 2008 -0800

    Use strtoul since id types are unsigned

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

Summary of changes:
 source/nsswitch/wbinfo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c
index d14cfe9..c85e210 100644
--- a/source/nsswitch/wbinfo.c
+++ b/source/nsswitch/wbinfo.c
@@ -146,8 +146,8 @@ static bool parse_mapping_arg(char *arg, int *id, char **sid)
 		return false;
 
 	/* Because atoi() can return 0 on invalid input, which would be a valid
-	 * UID/GID we must use strtol() and do error checking */
-	*id = strtol(tmp, &endptr, 10);
+	 * UID/GID we must use strtoul() and do error checking */
+	*id = strtoul(tmp, &endptr, 10);
 
 	if (endptr[0] != '\0')
 		return false;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list