From f66b1c4466f9ec5f1324f70cb9b2252ec8c12901 Mon Sep 17 00:00:00 2001 From: witekfl Date: Wed, 19 Nov 2003 23:09:31 +0000 Subject: [PATCH] - support for HOME_ETC Changed files: msmtp-home_etc.patch -> 1.1 --- msmtp-home_etc.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 msmtp-home_etc.patch diff --git a/msmtp-home_etc.patch b/msmtp-home_etc.patch new file mode 100644 index 0000000..024c20f --- /dev/null +++ b/msmtp-home_etc.patch @@ -0,0 +1,14 @@ +diff -Nru msmtp-0.6.2.orig/src/msmtp.c msmtp-0.6.2/src/msmtp.c +--- msmtp-0.6.2.orig/src/msmtp.c 2003-11-13 18:38:17.000000000 +0100 ++++ msmtp-0.6.2/src/msmtp.c 2003-11-19 14:25:31.000000000 +0100 +@@ -193,7 +193,9 @@ + /* read the configuration file */ + if (!conffile) + { +- if (!(p = getenv("HOME"))) ++ p = getenv("HOME_ETC"); ++ if (!p) p = getenv("HOME"); ++ if (!p) + { + add_error_line("no environment variable HOME"); + print_error_lines(stderr); -- 2.44.0