1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Use strtoul since id types are unsigned

This commit is contained in:
Dan Sledz 2008-12-08 14:52:14 -08:00 committed by Tim Prouty
parent 9f69a13de7
commit 3a45779f54

View File

@ -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;