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.8.0_pre1^2~2954 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=78885611ac8aa6602a4a1f42379c9d78ef226100;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. Change-Id: I39ef22578eb07c339b096b25753a1775c9917e0b Reviewed-on: http://gerrit.openafs.org/6255 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index a136c8d13..60f86b068 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -470,7 +470,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->viceId == UNDEFVID)) + (tu->viceId == UNDEFVID) && (tu->uid == 0)) rx_SetConnSecondsUntilNatPing(tc->id, 20); tc->forceConnectFS = 0; /* apparently we're appropriately connected now */