]>
Commit | Line | Data |
---|---|---|
9ba9e607 | 1 | --- aegis-4.11/libaegis/user.c.orig 2003-04-05 15:58:05.000000000 +0200 |
2 | +++ aegis-4.11/libaegis/user.c 2003-07-03 22:32:32.000000000 +0200 | |
3 | @@ -1024,7 +1024,16 @@ | |
4 | trace(("user_uconf_get(up = %08lX)\n{\n", (long)up)); | |
5 | lock_sync(up); | |
6 | if (!up->uconf_path) | |
7 | - up->uconf_path = str_format("%S/.aegisrc", up->home); | |
8 | + up->uconf_path = str_format("%S/.aegisrc", up->home); | |
9 | + { | |
10 | + char *etc_dir = getenv("ETC_DIR"); | |
11 | + if (etc_dir) | |
12 | + up->uconf_path = | |
13 | + str_format("%S/aegisrc", str_from_c(etc_dir)); | |
14 | + else | |
15 | + up->uconf_path = | |
16 | + str_format("%S/.aegisrc", up->home); | |
17 | + } | |
18 | ||
19 | /* | |
20 | * Read in the user preferences. There are several sources of |