[exim-dev] [Bug 2078] exim breaks if current directory doesn…

Góra strony
Delete this message
Reply to this message
Autor: admin
Data:  
Dla: exim-dev
Stare tematy: [exim-dev] [Bug 2078] New: exim breaks if current directory doesn't exist
Temat: [exim-dev] [Bug 2078] exim breaks if current directory doesn't exist
https://bugs.exim.org/show_bug.cgi?id=2078

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???


--- Comment #3 from Git Commit <git@???> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/cd328be98eb5bdda73316eaf95d9d6a617c7df7d

commit cd328be98eb5bdda73316eaf95d9d6a617c7df7d
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Oct 28 15:09:05 2017 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Sat Oct 28 15:09:05 2017 +0100


    Do not exit when cwd has no name.  Bug 2078
---
 src/src/exim.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)


diff --git a/src/src/exim.c b/src/src/exim.c
index c12b954..7dd0845 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -3793,12 +3793,9 @@ NOTE: immediatly after opening the configuration file we
change the working
directory to "/"! Later we change to $spool_directory. We do it there, because
during readconf_main() some expansion takes place already. */

-/* Store the initial cwd before we change directories */
-if ((initial_cwd = os_getcwd(NULL, 0)) == NULL)
- {
- perror("exim: can't get the current working directory");
- exit(EXIT_FAILURE);
- }
+/* Store the initial cwd before we change directories. Can be NULL if the
+dir has already been unlinked. */
+initial_cwd = os_getcwd(NULL, 0);

 /* checking:
     -be[m] expansion test        -


--
You are receiving this mail because:
You are on the CC list for the bug.