]> git.pld-linux.org Git - packages/aegis.git/commitdiff
- s/CONFIG_DIR/ETC_DIR/
authorjuandon <witekfl@pld-linux.org>
Mon, 7 Apr 2003 12:21:33 +0000 (12:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- s/home_etc/etc_dir/

Changed files:
    aegis-etc_dir.patch -> 1.1

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

diff --git a/aegis-etc_dir.patch b/aegis-etc_dir.patch
new file mode 100644 (file)
index 0000000..ef6798d
--- /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 *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);
++  }
+       if (!up->uconf_data)
+       {
+               uconf           data;
This page took 0.10276 seconds and 4 git commands to generate.