]> git.pld-linux.org Git - packages/cgdb.git/blame_incremental - cgdb-home_etc.patch
- updated to 0.8.0
[packages/cgdb.git] / cgdb-home_etc.patch
... / ...
CommitLineData
1--- cgdb-0.7.0/cgdb/cgdb.cpp.orig 2013-09-19 19:12:29.892082233 +0200
2+++ cgdb-0.7.0/cgdb/cgdb.cpp 2013-09-19 19:14:09.012082558 +0200
3@@ -750,10 +750,11 @@
4 static int init_home_dir(void)
5 {
6 /* Get the home directory */
7- char *home_dir = getenv("HOME");
8+ char *home_dir = getenv("HOME_ETC");
9 const char *cgdb_dir = ".cgdb";
10
11 /* Create the config directory */
12+ if (!home_dir) home_dir = getenv("HOME");
13 if (!fs_util_create_dir_in_base(home_dir, cgdb_dir)) {
14 logger_write_pos(logger, __FILE__, __LINE__,
15 "fs_util_create_dir_in_base error");
This page took 0.096987 seconds and 4 git commands to generate.