From: Andrew Deason Date: Mon, 16 May 2011 18:45:49 +0000 (-0500) Subject: libafs: Always use anonymous VL connections X-Git-Tag: upstream/1.6.1.pre1^2~36 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b9c7f07cb2b8c34e0af97a2b6969848a1cbf75a4;p=packages%2Fo%2Fopenafs.git libafs: Always use anonymous VL connections afs_NewVolumeByName was using the areq given by the caller for afs_SetupVolume, which may represent authenticated credentials. Give afs_SetupVolume &treq instead, which will be anonymous, so we don't have to deal with rxkad for VL lookups. Reviewed-on: http://gerrit.openafs.org/4666 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 4a82c0cc4167b729108813965bd39bf86ea15e6b) Change-Id: Ic10e85b925176719c6c5dc708a1d1a315409d295 Reviewed-on: http://gerrit.openafs.org/6300 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_volume.c b/src/afs/afs_volume.c index 93c85b17d..5fd5a8a22 100644 --- a/src/afs/afs_volume.c +++ b/src/afs/afs_volume.c @@ -844,14 +844,14 @@ afs_NewVolumeByName(char *aname, afs_int32 acell, int agood, ve = (char *)ntve; else ve = (char *)tve; - tv = afs_SetupVolume(0, aname, ve, tcell, agood, type, areq); + tv = afs_SetupVolume(0, aname, ve, tcell, agood, type, &treq); if ((agood == 3) && tv && tv->backVol) { /* * This means that very soon we'll ask for the BK volume so * we'll prefetch it (well we did already.) */ tv1 = - afs_SetupVolume(tv->backVol, (char *)0, ve, tcell, 0, type, areq); + afs_SetupVolume(tv->backVol, (char *)0, ve, tcell, 0, type, &treq); if (tv1) { tv1->refCount--; } @@ -861,7 +861,7 @@ afs_NewVolumeByName(char *aname, afs_int32 acell, int agood, * This means that very soon we'll ask for the RO volume so * we'll prefetch it (well we did already.) */ - tv1 = afs_SetupVolume(tv->roVol, NULL, ve, tcell, 0, type, areq); + tv1 = afs_SetupVolume(tv->roVol, NULL, ve, tcell, 0, type, &treq); if (tv1) { tv1->refCount--; }