From 3eb9ce53de4536144484900cfa811ded5080ec0b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Dec 2011 23:20:01 -0500 Subject: [PATCH] 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 --- src/afs/afs_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5