summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_idmap.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2019-06-04 09:01:02 +0200
committerRalph Boehme <slow@samba.org>2019-06-30 11:32:18 +0000
commitbf020a8c8db6bb6a0386d3bf69d40116601b1aca (patch)
treef932cb3e93dc812eb63569a748232b6fdd346e66 /nsswitch/libwbclient/wbc_idmap.c
parent39a518b6717a4687f43333b3e62a1765d45f5bff (diff)
downloadsamba-bf020a8c8db6bb6a0386d3bf69d40116601b1aca.tar.gz
nsswitch: Update all consumers of strtoul_err(), strtoull_err() to new API
Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'nsswitch/libwbclient/wbc_idmap.c')
-rw-r--r--nsswitch/libwbclient/wbc_idmap.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/wbc_idmap.c b/nsswitch/libwbclient/wbc_idmap.c
index 6af96bddb59..270a3c3c3ec 100644
--- a/nsswitch/libwbclient/wbc_idmap.c
+++ b/nsswitch/libwbclient/wbc_idmap.c
@@ -380,15 +380,27 @@ wbcErr wbcCtxSidsToUnixIds(struct wbcContext *ctx,
switch (p[0]) {
case 'U':
id->type = WBC_ID_TYPE_UID;
- id->id.uid = strtoul_err(p+1, &q, 10, &error);
+ id->id.uid = smb_strtoul(p+1,
+ &q,
+ 10,
+ &error,
+ SMB_STR_STANDARD);
break;
case 'G':
id->type = WBC_ID_TYPE_GID;
- id->id.gid = strtoul_err(p+1, &q, 10, &error);
+ id->id.gid = smb_strtoul(p+1,
+ &q,
+ 10,
+ &error,
+ SMB_STR_STANDARD);
break;
case 'B':
id->type = WBC_ID_TYPE_BOTH;
- id->id.uid = strtoul_err(p+1, &q, 10, &error);
+ id->id.uid = smb_strtoul(p+1,
+ &q,
+ 10,
+ &error,
+ SMB_STR_STANDARD);
break;
default:
id->type = WBC_ID_TYPE_NOT_SPECIFIED;