]> git.pld-linux.org Git - packages/cgdb.git/blob - cgdb-home_etc.patch
2c2bb351f4d94aedab27a531996827f09c1322b2
[packages/cgdb.git] / cgdb-home_etc.patch
1 --- cgdb-0.6.7/cgdb/cgdb.c.orig 2013-09-19 19:12:29.892082233 +0200
2 +++ cgdb-0.6.7/cgdb/cgdb.c      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.040469 seconds and 2 git commands to generate.