git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e73859
)
Do not exit when cwd has no name. Bug 2078
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 28 Oct 2017 14:09:05 +0000
(15:09 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 28 Oct 2017 14:09:05 +0000
(15:09 +0100)
src/src/exim.c
patch
|
blob
|
history
diff --git
a/src/src/exim.c
b/src/src/exim.c
index c12b95477f797214523ed727dedf54c523157401..7dd08453419d84f31aac4cdb6432c6d34af69c15 100644
(file)
--- 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. */
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 -
/* checking:
-be[m] expansion test -