SOURCES: wmpiki-home_etc.patch (NEW) - home_etc patch from atler (...

yogib yogib at pld-linux.org
Thu Oct 20 20:15:00 CEST 2005


Author: yogib                        Date: Thu Oct 20 18:15:00 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- home_etc patch from atler (<jan.palus at student.put.poznan.pl>)

---- Files affected:
SOURCES:
   wmpiki-home_etc.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/wmpiki-home_etc.patch
diff -u /dev/null SOURCES/wmpiki-home_etc.patch:1.1
--- /dev/null	Thu Oct 20 20:15:00 2005
+++ SOURCES/wmpiki-home_etc.patch	Thu Oct 20 20:14:55 2005
@@ -0,0 +1,15 @@
+--- wmpiki-0.2.4/src/docklib.c.orig	2005-10-17 21:20:15.000000000 +0200
++++ wmpiki-0.2.4/src/docklib.c	2005-10-17 21:19:55.000000000 +0200
+@@ -364,8 +364,11 @@
+ {
+ static char cfgdir[PATH_MAX];
+ struct stat cfg;
++char *home;
+ 
+-    dcl_strcpy (cfgdir, getenv ("HOME"), PATH_MAX);
++    home = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
++
++    dcl_strcpy (cfgdir, home, PATH_MAX);
+     dcl_strcat (cfgdir, "/", PATH_MAX);
+     dcl_strcat (cfgdir, cdirectory, PATH_MAX);
+ 
================================================================



More information about the pld-cvs-commit mailing list