mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
evalmountdata: put back colon in .:mount syntax only if we removed it
we looked for a set character (not NULL) at cpos before, instead of looking for a non-NULL pointer. fix it. Change-Id: Iaa370980b6482f1c50e11f161e3208c039043a6f Reviewed-on: http://gerrit.openafs.org/3874 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
66bd7cf95e
commit
d12d2c08ee
@ -137,7 +137,7 @@ EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum,
|
||||
* in the dynamic mount directory.
|
||||
*/
|
||||
if (volid && !avolpp) {
|
||||
if (*cpos)
|
||||
if (cpos)
|
||||
*cpos = ':';
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user