This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: Mounting /tmp at TMP or TEMP as a last resort
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 8 Sep 2010 18:41:08 -0400
- Subject: Re: Mounting /tmp at TMP or TEMP as a last resort
- References: <4C880761.2030503@ixiacom.com> <4C880DC2.1070706@ixiacom.com>
- Reply-to: cygwin-patches at cygwin dot com
On Wed, Sep 08, 2010 at 03:27:14PM -0700, Earl Chew wrote:
>We have an installation that we deploy to a bunch of workstations. We prefer
>if the installation uses the temporary file directory that Windows has already
>allocated for the user.
>
>The entry for /tmp in /etc/fstab, or the directory /tmp, is preferred.
>If neither is found, the patch mounts /tmp at the directory indicated
>by the environment variable TMP or, if that is not set, TEMP. The patch
>does nothing if neither environment variable is set.
Thanks for the patch but I don't think this is generally useful. If you
need to mount /tmp somewhere else then it should be fairly trivial to
automatically update /etc/fstab. Corinna may disagree, but I think we
should keep the parsing of /etc/fstab as lean as possible; particularly
when there are alternatives to modifying Cygwin to achieve the desired
result.
cgf