1 diff -burNp gammu-1.23.1/libgammu/gsmstate.c gammu-1.23.1-dud/libgammu/gsmstate.c
2 --- gammu-1.23.1/libgammu/gsmstate.c 2009-02-12 15:05:40.000000000 +0100
3 +++ gammu-1.23.1-dud/libgammu/gsmstate.c 2009-03-14 21:19:03.565653553 +0100
4 @@ -1021,6 +1021,7 @@ GSM_Error GSM_FindGammuRC (INI_Section *
6 char configfile[PATH_MAX + 1];
12 @@ -1042,6 +1043,15 @@ GSM_Error GSM_FindGammuRC (INI_Section *
13 /* Reset as we're using strcat */
16 + /* Try user etc dir */
17 + home_etc = getenv("HOME_ETC");
19 + strcat(configfile, home_etc);
20 + strcat(configfile, GAMMURC_NAME);
22 + error = GSM_TryReadGammuRC(configfile, result);
23 + if (error == ERR_NONE) return ERR_NONE;
26 envpath = getenv("HOME");
28 @@ -1051,6 +1061,7 @@ GSM_Error GSM_FindGammuRC (INI_Section *
29 error = GSM_TryReadGammuRC(configfile, result);
30 if (error == ERR_NONE) return ERR_NONE;
35 /* Reset as we're using strcat */