summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sledz <dsledz@isilon.com>2008-12-08 14:52:14 -0800
committerTim Prouty <tprouty@samba.org>2008-12-11 15:52:00 -0800
commit3a45779f546ac0e7ca1871cdd2573bd84f952524 (patch)
tree3f9f74979ab80c25cabec9ea0191ab86801807dd
parent9f69a13de7bf192a3a6fe06b5dee51e9971b59b9 (diff)
downloadsamba-3a45779f546ac0e7ca1871cdd2573bd84f952524.tar.gz
samba-3a45779f546ac0e7ca1871cdd2573bd84f952524.tar.bz2
samba-3a45779f546ac0e7ca1871cdd2573bd84f952524.zip
s3: Use strtoul since id types are unsigned
-rw-r--r--source3/nsswitch/wbinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index d14cfe94b7..c85e210cc0 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/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;