magic mount parser fix

parse vnodes from magic mount objects correctly

Change-Id: Id46afa7e6b1fa260d56ce54c8bffe2662b7c447d
Reviewed-on: http://gerrit.openafs.org/1488
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-02-27 23:00:31 -05:00
parent 42d3d08b22
commit 8b898af1b3

View File

@ -108,7 +108,7 @@ EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum,
if (cpos) { if (cpos) {
*cpos = ':'; *cpos = ':';
vnoid = 0; vnoid = 0;
if (!*x) /* allow vno with numeric volid only */ if (*x == *cpos) /* allow vno with numeric volid only */
for (x = (cpos + 1); *x >= '0' && *x <= '9'; x++) for (x = (cpos + 1); *x >= '0' && *x <= '9'; x++)
vnoid = (vnoid * 10) + (*x - '0'); vnoid = (vnoid * 10) + (*x - '0');
if (*x) if (*x)