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:
Andrew Deason 2011-11-15 11:53:12 -06:00 committed by Derrick Brashear
parent 8cc7308aaa
commit 240149f529

View File

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