]> git.pld-linux.org Git - packages/gammu.git/commitdiff
- updated ETC_DIR to HOME_ETC
authorTomasz Pala <gotar@pld-linux.org>
Sun, 21 Dec 2008 13:07:26 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gammu-etc_dir.patch -> 1.4

gammu-etc_dir.patch

index 49edb0a84abfcf092a74674af1e47ebb30b37a60..00adfe583b0a2fe4536cb87d4929fa8268147b9e 100644 (file)
@@ -4,7 +4,7 @@
  {
        char configfile[PATH_MAX + 1];
        char *envpath;
-+      char *etc_dir;
++      char *home_etc;
        GSM_Error error;
  
        *result = NULL;
@@ -13,9 +13,9 @@
        configfile[0] = 0;
  
 +      /* Try user etc dir */
-+      etc_dir = getenv("ETC_DIR");
-+      if (etc_dir) {
-+              strcat(configfile, etc_dir);
++      home_etc = getenv("HOME_ETC");
++      if (home_etc) {
++              strcat(configfile, home_etc);
 +              strcat(configfile, GAMMURC_NAME);
 +
 +              error = GSM_TryReadGammuRC(configfile, result);
This page took 0.065939 seconds and 4 git commands to generate.