git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f69a13
)
s3: Use strtoul since id types are unsigned
author
Dan Sledz
<dsledz@isilon.com>
Mon, 8 Dec 2008 22:52:14 +0000
(14:52 -0800)
committer
Tim Prouty
<tprouty@samba.org>
Thu, 11 Dec 2008 23:52:00 +0000
(15:52 -0800)
source3/nsswitch/wbinfo.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/wbinfo.c
b/source3/nsswitch/wbinfo.c
index d14cfe94b72a0619756a77ede3dc049dbefa79bc..c85e210cc04de2fd999fc2085e3d0a12fc66aaee 100644
(file)
--- 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 strto
u
l() and do error checking */
+ *id = strto
u
l(tmp, &endptr, 10);
if (endptr[0] != '\0')
return false;