$NetBSD: patch-af,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $ --- cli.c.orig Sat Sep 4 23:23:48 1993 +++ cli.c Sun May 23 17:26:18 1999 @@ -724,12 +724,18 @@ void doConfigFile( void ) { - char *configFileName; + char *configFileName, *s; FD configFileFD; WORD oldFlags = flags; + if (( s = getenv( HPACKPATH )) == NULL) +#ifdef __UNIX__ + s = PREFIX "/etc"; +#else + ; +#endif /* Build path to config file and try and process it */ - configFileName = getFirstKeyPath( getenv( HPACKPATH ), CONFIGFILENAME ); + configFileName = getFirstKeyPath( s, CONFIGFILENAME ); while( configFileName != NULL ) { /* Try and read the seed from the seedfile */