--- aegis-4.11/libaegis/user.c.orig 2003-04-05 15:58:05.000000000 +0200 +++ aegis-4.11/libaegis/user.c 2003-07-03 22:32:32.000000000 +0200 @@ -1024,7 +1024,16 @@ trace(("user_uconf_get(up = %08lX)\n{\n", (long)up)); lock_sync(up); if (!up->uconf_path) - up->uconf_path = str_format("%S/.aegisrc", up->home); + up->uconf_path = str_format("%S/.aegisrc", up->home); + { + char *etc_dir = getenv("ETC_DIR"); + if (etc_dir) + up->uconf_path = + str_format("%S/aegisrc", str_from_c(etc_dir)); + else + up->uconf_path = + str_format("%S/.aegisrc", up->home); + } /* * Read in the user preferences. There are several sources of