]> git.pld-linux.org Git - packages/aegis.git/commitdiff
- CONFIG_DIR support
authorjuandon <witekfl@pld-linux.org>
Sat, 22 Mar 2003 20:05:27 +0000 (20:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aegis-home_etc.patch -> 1.1

aegis-home_etc.patch [new file with mode: 0644]

diff --git a/aegis-home_etc.patch b/aegis-home_etc.patch
new file mode 100644 (file)
index 0000000..df27300
--- /dev/null
@@ -0,0 +1,21 @@
+diff -Nru aegis-3.18/libaegis/user.c aegis-3.18.new/libaegis/user.c
+--- aegis-3.18/libaegis/user.c Thu Jul  8 22:36:21 1999
++++ aegis-3.18.new/libaegis/user.c     Sat Mar 22 16:55:45 2003
+@@ -874,8 +874,15 @@
+       trace(("user_uconf_get(up = %08lX)\n{\n"/*}*/, up));
+       lock_sync(up);
+       if (!up->uconf_path)
+-              up->uconf_path =
+-                      str_format("%S/.aegisrc", up->home);
++      {
++              char *config_dir = getenv("HOME");
++              if (config_dir)
++                      up->uconf_path =
++                              str_format("%S/aegisrc", str_from_c(config_dir));
++              else
++                      up->uconf_path =
++                              str_format("%S/.aegisrc", up->home);
++  }
+       if (!up->uconf_data)
+       {
+               uconf           data;
This page took 0.049587 seconds and 4 git commands to generate.