]> git.pld-linux.org Git - packages/msmtp.git/blob - msmtp-home_etc.patch
- fixed: getenv(HOME_ETC) must also be duped. Adapted from Jan Palus's patch
[packages/msmtp.git] / msmtp-home_etc.patch
1 --- msmtp-1.4.4/src/os_env.c.orig       2005-09-20 18:44:17.000000000 +0200
2 +++ msmtp-1.4.4/src/os_env.c    2005-09-20 18:46:28.000000000 +0200
3 @@ -257,7 +257,9 @@
4      
5      char *home;
6      
7 -    if ((home = getenv("HOME")))
8 +    home = getenv("HOME_ETC");
9 +    if (home == NULL) home = getenv("HOME");
10 +    if (home != NULL)
11      {
12         home = xstrdup(home);
13      }
14 @@ -273,7 +275,9 @@
15      char *home;
16      struct passwd *pw;
17      
18 -    if ((home = getenv("HOME")))
19 +    home = getenv("HOME_ETC");
20 +    if (home == NULL) home = getenv("HOME");
21 +    if (home != NULL)
22      {
23         home = xstrdup(home);
24      }
This page took 0.366785 seconds and 3 git commands to generate.