mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
vlserver: Avoid atoi for vol ids
Reviewed-on: http://gerrit.openafs.org/6050 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com> Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com> (cherry picked from commit d113c0eb8ac4717cafd7747a78c5aa3b649b8e68) Change-Id: If965a7442262048048be9eca3e643c01d7b5c277 Reviewed-on: http://gerrit.openafs.org/6318 Reviewed-by: Derrick Brashear <shadow@dementix.org> Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
8cc7308aaa
commit
240149f529
@ -514,7 +514,7 @@ GetEntryByName(struct rx_call *rxcall,
|
||||
char rxstr[AFS_RXINFO_LEN];
|
||||
|
||||
if (NameIsId(volname)) {
|
||||
return GetEntryByID(rxcall, atoi(volname), -1, aentry, new, this_op);
|
||||
return GetEntryByID(rxcall, strtoul(volname, NULL, 10), -1, aentry, new, this_op);
|
||||
}
|
||||
if (InvalidVolname(volname))
|
||||
return VL_BADNAME;
|
||||
|
Loading…
x
Reference in New Issue
Block a user