Public bug reported: The mail command (/usr/bin/mail.mailutils) crashes (core dump) when temp directory is not available.
Two simple tests below. Works: # echo "hello world" | mail -s "Testing testing" em...@domain.com Crashes (core dump): # echo "hello world" | TMPDIR=/doesnotexist mail -s "Testing testing" em...@domain.com Shouldn't it show a warning/error instead of crashing? --- Version info: Ubuntu: 16.04.6 LTS (Xenial Xerus) Mailutils: 1:2.99.99-1ubuntu2 ** Affects: mailutils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1888814 Title: mail command crashes (core dump) when temp directory is not available To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mailutils/+bug/1888814/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs