From 946b2218e29eef34e00355bffa70348dbb511acd Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 9 Mar 2004 01:57:34 +0000 Subject: [PATCH] add-path-to-log-20040308 Discovered after wasting a huge quantity of time that it is possible for OpenAFS to be installed on machines already containing the IBM/Transarc AFS. Add the PATH environment variable to the log to allow this situation to be detected. --- src/WINNT/afsd/afsd_init.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index b537a30bd..c1be190fb 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -98,7 +98,7 @@ void afsi_start() { char wd[100]; - char t[100], u[100]; + char t[100], u[100], *p, *path; int zilch; int code; @@ -122,6 +122,11 @@ afsi_start() strcat(u, ": Created log file\n"); WriteFile(afsi_file, t, strlen(t), &zilch, NULL); WriteFile(afsi_file, u, strlen(u), &zilch, NULL); + p = "PATH="; + path = getenv("PATH"); + WriteFile(afsi_file, p, strlen(p), &zilch, NULL); + WriteFile(afsi_file, path, strlen(path), &zilch, NULL); + WriteFile(afsi_file, "\n", 1, &zilch, NULL); } static int afsi_log_useTimestamp = 1; @@ -550,11 +555,15 @@ int afsd_InitCM(char **reasonP) cm_initParams.memCache = 0; /* Set RX parameters before initializing RX */ - if ( rx_nojumbo ) + if ( rx_nojumbo ) { rx_SetNoJumbo(); + afsi_log("rx_SetNoJumbo successful"); + } - if ( rx_mtu != -1 ) + if ( rx_mtu != -1 ) { rx_SetMaxMTU(rx_mtu); + afsi_log("rx_SetMaxMTU %d successful", rx_mtu); + } /* initialize RX, and tell it to listen to port 7001, which is used for * callback RPC messages. -- 2.39.5