mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
42d3d08b22
commit
8b898af1b3
@ -108,7 +108,7 @@ EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum,
|
||||
if (cpos) {
|
||||
*cpos = ':';
|
||||
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++)
|
||||
vnoid = (vnoid * 10) + (*x - '0');
|
||||
if (*x)
|
||||
|
Loading…
Reference in New Issue
Block a user