1 diff -u -r --from-file=gentoo-0.11.55/ gentoo-0.11.55/src/configure.c gentoo-0.11.55-home_etc/src/configure.c
2 --- gentoo-0.11.55/src/configure.c 2003-10-12 15:45:23.000000000 +0200
3 +++ gentoo-0.11.55-home_etc/src/configure.c 2005-06-24 00:11:12.000000000 +0200
8 + if((home = getenv("HOME_ETC")) != NULL)
10 + strcpy(rcname, home);
11 + strcat(rcname, "/" RCNAME);
15 if((home = getenv("HOME")) != NULL)
18 strcat(rcname, "/" RCNAME);
25 cfg_modified_clear(min);
26 if((out = xml_put_open(rcname)) != NULL)
29 gchar name[PATH_MAX] = "", *hpath;
30 guint32 i, flags = 0UL;
32 - if((hpath = getenv("HOME")) != NULL)
33 + if((hpath = getenv("HOME_ETC")) != NULL) {
34 g_snprintf(name, sizeof name, "%s" G_DIR_SEPARATOR_S "%s", hpath, RCNAME);
38 + if((hpath = getenv("HOME")) != NULL) {
39 + g_snprintf(name, sizeof name, "%s" G_DIR_SEPARATOR_S "%s", hpath, RCNAME);
43 /* Does the user seem to have a local config? */
44 if(!fut_can_read_named(name))
45 g_snprintf(name, sizeof name, PATH_CFG G_DIR_SEPARATOR_S "%s", RCNAME + 1); /* Nope, check for global one. */
48 gchar homename[PATH_MAX] = "", syscfg[PATH_MAX], whine[2 * PATH_MAX];
50 + if((hpath = getenv("HOME_ETC")) != NULL) {
51 + g_snprintf(homename, sizeof homename, "%s/%s", hpath, RCNAME);
54 if((hpath = getenv("HOME")) != NULL)
55 g_snprintf(homename, sizeof homename, "%s/%s", hpath, RCNAME);
59 g_snprintf(syscfg, sizeof syscfg, PATH_CFG G_DIR_SEPARATOR_S "%s", RCNAME + 1);
60 g_snprintf(whine, sizeof whine, _("Couldn't find any configuration file; checked\n"
61 "both \"%s\" and \"%s\".\n"