Wireshark-dev: Re: [Wireshark-dev] Using /var/tmp instead of /tmp

From: Roland Knall <rknall@xxxxxxxxx>
Date: Thu, 29 Jun 2017 12:30:52 +0200
Not sure why, because the two temp directories are different.

Judging by https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

/tmp is usually purged during a reboot (at least you cannot expect to survive it)
/var/tmp is not purged during a reboot

The Qt::Dir() related stuff is actually a bug and should default to the wsutil function or at least the same g_get_tmp_dir, as Gtk and Qt might have different methods of getting the tmp directory and by using a Qt specific version this may lead to file polution.

I think using /var/tmp was a decision by the package developer for the Fedora package. I honestly see no reasons behind that decision, except to wanting to access the tmp files and making sure they stay around. But this leads to an overly crowded /var/tmp after some time in my book, so I think it actually should change back to /tmp 

cheers
Roland

On Thu, Jun 29, 2017 at 11:25 AM, Martin Sehnoutka <msehnout@xxxxxxxxxx> wrote:
What are the pros and cons of using /var/tmp instead of /tmp for Wireshark?

In Fedora, there is this downstream patch, which makes Wireshark use
/var/tmp:
http://pkgs.fedoraproject.org/cgit/rpms/wireshark.git/tree/wireshark-0008-move-default-temporary-directory-to-var-tmp.patch
so I'm just wondering why is it Fedora specific.

--
Martin Sehnoutka | Associate Software Engineer
PGP: 5FD64AF5
UTC+1 (CET)
RED HAT | TRIED. TESTED. TRUSTED.



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe