From d12d2c08eef5b2bffccefac61465b7d4e40bba9f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 31 Jan 2011 15:07:45 -0500 Subject: [PATCH] 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 Tested-by: Derrick Brashear --- src/afs/VNOPS/afs_vnop_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 759abfef5b..9c75730d21 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -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; }