]> git.pld-linux.org Git - packages/cgdb.git/blame - cgdb-home_etc.patch
- rm spaces
[packages/cgdb.git] / cgdb-home_etc.patch
CommitLineData
c12e48c5 1diff -Nru cgdb-0.4.0.orig/cgdb/src/cgdb.c cgdb-0.4.0/cgdb/src/cgdb.c
2--- cgdb-0.4.0.orig/cgdb/src/cgdb.c 2003-10-24 18:08:16.000000000 +0200
3+++ cgdb-0.4.0/cgdb/src/cgdb.c 2003-11-19 11:29:11.000000000 +0100
4@@ -190,10 +190,11 @@
5
6 static int init_home_dir(void) {
7 /* Get the home directory */
8- char *home_dir = getenv("HOME");
9+ char *home_dir = getenv("HOME_ETC");
10 const char *cgdb_dir = ".cgdb";
11
12- /* Create the config directory */
13+ if (!home_dir) home_dir = getenv("HOME");
14+ /* Create the config directory */
15 if ( ! fs_util_create_dir_in_base ( home_dir, cgdb_dir ) ) {
16 err_msg("%s:%d fs_util_create_dir_in_base error", __FILE__, __LINE__);
17 return -1;
This page took 0.115151 seconds and 4 git commands to generate.