]> git.pld-linux.org Git - packages/aegis.git/blob - aegis-home_etc.patch
- updated to 4.11
[packages/aegis.git] / aegis-home_etc.patch
1 diff -Nru aegis-3.18/libaegis/user.c aegis-3.18.new/libaegis/user.c
2 --- aegis-3.18/libaegis/user.c  Thu Jul  8 22:36:21 1999
3 +++ aegis-3.18.new/libaegis/user.c      Sat Mar 22 16:55:45 2003
4 @@ -874,8 +874,15 @@
5         trace(("user_uconf_get(up = %08lX)\n{\n"/*}*/, up));
6         lock_sync(up);
7         if (!up->uconf_path)
8 -               up->uconf_path =
9 -                       str_format("%S/.aegisrc", up->home);
10 +       {
11 +               char *config_dir = getenv("HOME");
12 +               if (config_dir)
13 +                       up->uconf_path =
14 +                               str_format("%S/aegisrc", str_from_c(config_dir));
15 +               else
16 +                       up->uconf_path =
17 +                               str_format("%S/.aegisrc", up->home);
18 +  }
19         if (!up->uconf_data)
20         {
21                 uconf           data;
This page took 0.06074 seconds and 3 git commands to generate.