mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
namei decodevolume allow low volume ids
the smallest thing which can be encoded is a single character; also allow it to be decoded, such that low numbered volumes are treated as valid. Change-Id: Ia5e694f7f73e1035af741bd23c7f50805910d0c4 Reviewed-on: http://gerrit.openafs.org/2470 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
aa24d1392c
commit
a4267ef140
@ -1491,7 +1491,7 @@ namei_ListAFSSubDirs(IHandle_t * dirIH,
|
|||||||
static int
|
static int
|
||||||
DecodeVolumeName(char *name, unsigned int *vid)
|
DecodeVolumeName(char *name, unsigned int *vid)
|
||||||
{
|
{
|
||||||
if (strlen(name) <= 2)
|
if (strlen(name) < 1)
|
||||||
return -1;
|
return -1;
|
||||||
*vid = (unsigned int)flipbase64_to_int64(name);
|
*vid = (unsigned int)flipbase64_to_int64(name);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user