]> git.pld-linux.org Git - packages/cgdb.git/blob - cgdb-home_etc.patch
- converted to UTF-8
[packages/cgdb.git] / cgdb-home_etc.patch
1 --- cgdb-0.6.1/cgdb/src/cgdb.c~ 2006-03-08 00:08:42.000000000 +0100
2 +++ cgdb-0.6.1/cgdb/src/cgdb.c  2006-03-08 00:10:29.000000000 +0100
3 @@ -683,10 +683,11 @@
4  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      {
15        logger_write_pos (logger, __FILE__, __LINE__,
This page took 0.048252 seconds and 3 git commands to generate.