mail command crashes (core dump) when temp directory is not available

Bug #1888814 reported by Sander Peterse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mailutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

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" <email address hidden>

Crashes (core dump):
# echo "hello world" | TMPDIR=/doesnotexist mail -s "Testing testing" <email address hidden>

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.