a_amv_var_check_vips(): FIX code to match comment (Felix Fontein)..
commit670aabb6804d94e0fe386c99e2b9ab382a2bb86c
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 22 Jul 2017 21:42:08 +0000 (22 23:42 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 22 Jul 2017 21:46:04 +0000 (22 23:46 +0200)
treeaec1861a1a6e06b927781c20189cb25717879140
parent1aae21b992fc7160afb355b774059163cfb1fd2b
a_amv_var_check_vips(): FIX code to match comment (Felix Fontein)..

Felix reported on s-mailx@:

  I've noticed that the new version of s-nail (14.9.0) now prints
  warnings and segfaults when $HOME of the current user is not writable.
  I'm using it to send mail from a cronjob of my http user, which has no
  write-access to its home folder.
  ...

  # echo test | sudo -u http mail my@self
  mail: $HOME is not a directory or not accessible: /home/http
  mail: $TMPDIR is not a directory or not accessible: /home/http
  mail: Assignment of variable aborted: HOME
  Segmentation fault

The SEGV actually happens because we try to access ~/.mailrc, but
$HOME is not set.  It should be, because we explicitly have the
necessary fallback, unfortunately the code missed the break; from
the switch statement: add it!
accmacvar.c