From 4e5206aa98247bf066dfb306056d560a852279cd Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 16 May 2007 23:55:36 +0000 Subject: [PATCH] * Always generate a UUID on client startup even if for some reason we don't think we have any network interfaces. Otherwise, the client will use an all-zeroes UUID, which will collide with every other client with the same problem. --- debian/changelog | 6 +++++- src/afs/afs_call.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e7046077b..918f6b399 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,16 @@ openafs (1.4.4.dfsg1-3) unstable; urgency=low + * Always generate a UUID on client startup even if for some reason we + don't think we have any network interfaces. Otherwise, the client + will use an all-zeroes UUID, which will collide with every other + client with the same problem. * Don't use krb5-config to get a library list. It runs the risk of encoding unnecessary library dependencies. Instead, hard-code the flags and libraries we actually need. (Closes: #424448) * When loading a module using the upstream naming convention, don't append the .mp to the module name for modprobe. (Closes: #420597) - -- Russ Allbery Wed, 16 May 2007 16:54:57 -0700 + -- Russ Allbery Wed, 16 May 2007 16:56:46 -0700 openafs (1.4.4.dfsg1-2) unstable; urgency=low diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index f2fd25547..5522e1696 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -858,6 +858,8 @@ afs_syscall_call(parm, parm2, parm3, parm4, parm5, parm6) #if (!defined(AFS_NONFSTRANS)) || defined(AFS_AIX_IAUTH_ENV) afs_nfsclient_init(); #endif + if (afs_cb_interface.numberOfInterfaces < 1) + afs_uuid_create(&afs_cb_interface.uuid); printf("found %d non-empty cache files (%d%%).\n", afs_stats_cmperf.cacheFilesReused, (100 * afs_stats_cmperf.cacheFilesReused) / -- 2.39.5