Re: [exim-dev] [Bug 2078] New: exim breaks if current direct…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Graeme Fowler
Datum:  
To: admin
CC: exim-dev
Betreff: Re: [exim-dev] [Bug 2078] New: exim breaks if current directory doesn't exist
On 16 Mar 2017, at 16:57, admin@??? <mailto:admin@bugs.exim.org> wrote:
> Exim should not require the working directory to exist. Wasted 10 hours
> figuring out why cron-jobs script never sent anything.
>
> $ tmpdir=`mktemp --directory /tmp/dispenser-test.XXX`
> $ cd $tmpdir
> $ rm -rf $tmpdir
> $ mail -s "Test email" "$USER" <<< 'MyData'
> exim: can't get the current working directory: No such file or directory


Change was in 4.87 as part of the environment cleanup work, keeping initial_cwd (and making it available in $initial_cwd).

This is an unusual corner case, IMO. I don't think I've ever come across something calling an application when it's explicitly not got a CWD in this way!

Graeme