From: Derrick Brashear Date: Wed, 14 Dec 2011 04:20:01 +0000 (-0500) Subject: libafs: only do pings for default conn with root uid X-Git-Tag: upstream/1.6.1.pre1^2~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3eb9ce53de4536144484900cfa811ded5080ec0b;p=packages%2Fo%2Fopenafs.git libafs: only do pings for default conn with root uid instead of doing it for potentially every unauth user, just do it for root. Reviewed-on: http://gerrit.openafs.org/6255 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 78885611ac8aa6602a4a1f42379c9d78ef226100) Change-Id: Id54f6608b8807289242d094f48e394f0341782da Reviewed-on: http://gerrit.openafs.org/6326 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index e4cba32dc..59feb489e 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -308,7 +308,7 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell, * Will need to be revisited if/when CB gets security. */ if ((isec == 0) && (service != 52) && !(tu->states & UTokensBad) && - (tu->vid == UNDEFVID)) + (tu->vid == UNDEFVID) && (tu->uid == 0)) rx_SetConnSecondsUntilNatPing(tc->id, 20); tc->forceConnectFS = 0; /* apparently we're appropriately connected now */