From e3198f10385501329730a1ec13288d2db16ba4fd Mon Sep 17 00:00:00 2001 From: shadzik Date: Tue, 6 Jun 2006 10:34:35 +0000 Subject: [PATCH] - obsolete Changed files: etswitch-home_etc.patch -> 1.2 --- etswitch-home_etc.patch | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 etswitch-home_etc.patch diff --git a/etswitch-home_etc.patch b/etswitch-home_etc.patch deleted file mode 100644 index 22021e7..0000000 --- a/etswitch-home_etc.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- etswitch-0.1.8/src/conf.c~ 2005-11-03 17:56:30.000000000 +0100 -+++ etswitch-0.1.8/src/conf.c 2006-03-09 20:48:40.865172500 +0100 -@@ -95,7 +95,9 @@ - - file = calloc(max,1); - bin = calloc(78,1); -- home = (char *)getenv("HOME"); -+ home = getenv("HOME_ETC"); -+ if ( home == NULL) -+ home = (char *)getenv("HOME"); - snprintf((char *)file, (size_t)max, "%s/.etswitch/etswitch.rc", (char *)home); - if (!(fp = open((char *)file,O_RDONLY))){ - fprintf(stderr, "fopen read failed: %s, at line: %d\n", strerror(errno),__LINE__); -@@ -121,6 +123,10 @@ - int r; - int special; - -+ char * home = getenv("HOME_ETC"); -+ if (home == NULL) -+ home = getenv("HOME"); -+ - dir = calloc(PATH_MAX+1,1); - /* home = calloc(PATH_MAX+1,1); */ - file = calloc(PATH_MAX+NAME_MAX+1,1); -@@ -130,7 +136,7 @@ - exit(EXIT_FAILURE); - } - /* change to get pw*/ -- snprintf((char *)dir, PATH_MAX, "%s/.etswitch", getenv("HOME")); -+ snprintf((char *)dir, PATH_MAX, "%s/.etswitch", home); - snprintf((char *)file, PATH_MAX+NAME_MAX, "%s/etswitch.rc", dir); - if (stat((char *)dir, &dir_stat)!=-1){ - if (!S_ISDIR (dir_stat.st_mode)){ /* the name is a directory, and it exists */ -- 2.43.0