On Wed, 21 Oct 2015, Garrett D'Amore wrote:

/var/tmp is the most appropriate definition for this, at least “universally”.

Agreed.

Since P_tmpdir is documented by POSIX, the string it defines is often burned into application binaries. For example, it is burned into GraphicsMagick. It becomes as concrete as the ABI.

Programs like 'vi' write their working files to /var/tmp so that they are not lost if the terminal goes away or the system reboots. The restoration of /var/tmp after boot is a contract with the applications.

As someone who always defines TMPDIR in his shell environment, I have learned from experience that some software (particularly software installers) is inconsistent and looks in /var/tmp for temporary files which were written elsewhere due to TMPDIR.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to