]> git.pld-linux.org Git - packages/ddd.git/commitdiff
- support for HOME_ETC
authorwitekfl <witekfl@pld-linux.org>
Mon, 10 Nov 2003 06:04:35 +0000 (06:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ddd-home_etc.patch -> 1.1

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

diff --git a/ddd-home_etc.patch b/ddd-home_etc.patch
new file mode 100644 (file)
index 0000000..636294a
--- /dev/null
@@ -0,0 +1,17 @@
+diff -Nru ddd-3.3.7.orig/ddd/session.C ddd-3.3.7/ddd/session.C
+--- ddd-3.3.7.orig/ddd/session.C       2003-05-24 17:27:11.000000000 +0200
++++ ddd-3.3.7/ddd/session.C    2003-11-09 09:28:03.000000000 +0100
+@@ -137,8 +137,11 @@
+     const char *ddd_state = getenv(DDD_NAME "_STATE");
+     if (ddd_state != 0)
+       return ddd_state;
+-    else
+-      return string(gethome()) + "/." ddd_NAME;
++    else {
++      char *home_etc = getenv("HOME_ETC");
++                      if (home_etc != NULL) return string(home_etc) + "/." ddd_NAME;
++        return string(gethome()) + "/." ddd_NAME;
++  }
+ }
+ static string session_base_dir()
This page took 0.073435 seconds and 4 git commands to generate.