]> git.pld-linux.org Git - packages/geg.git/commitdiff
- s/CONFIG_DIR/ETC_DIR/
authorjuandon <witekfl@pld-linux.org>
Mon, 7 Apr 2003 12:21:34 +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:
    geg-etc_dir.patch -> 1.1

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

diff --git a/geg-etc_dir.patch b/geg-etc_dir.patch
new file mode 100644 (file)
index 0000000..dbe9e76
--- /dev/null
@@ -0,0 +1,22 @@
+diff -Nru geg-1.0.2/src/app.c geg-1.0.2.new/src/app.c
+--- geg-1.0.2/src/app.c        Tue Nov 23 23:33:56 1999
++++ geg-1.0.2.new/src/app.c    Sat Mar 29 12:50:15 2003
+@@ -114,9 +114,16 @@
+ parse_rcfile(void)
+ {
+   char rc_file[256];
++  char *etc_dir = getenv("ETC_DIR");
++
+   /* load preferences */
+-  strncpy(rc_file, getenv("HOME"), 248);
+-  strcat(rc_file, "/.gegrc");
++  if (etc_dir) {
++    strncpy(rc_file, etc_dir, 248);
++    strcat(rc_file, "/gegrc");
++  } else {
++    strncpy(rc_file, getenv("HOME"), 248);
++    strcat(rc_file, "/.gegrc");
++  }
+   prefs_rc_parse(rc_file);
+ }
This page took 0.089453 seconds and 4 git commands to generate.