<div dir="ltr">You can override the temporary directory by setting the TMPDIR environment variable.<div><br></div><div>To have this apply to all of your stack invocations, consider putting an alias in your .bashrc, something like:</div><div><br></div><div>$ alias stack="TMPDIR=~/.local/tmp ~/.local/bin/stack"</div><div><br></div><div>Note that you might also need to</div><div><br></div><div>$ mkdir ~/.local/tmp</div><div><br></div><div>-Michael</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 6, 2019 at 12:36 AM Viktor Dukhovni <<a href="mailto:ietf-dane@dukhovni.org" target="_blank">ietf-dane@dukhovni.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
When I run "stack ghci", an attempt is made to create a temporary<br>
directory named:<br>
<br>
/tmp/haskell-stack-ghci/<unique-subdir><br>
<br>
in which various temporary artefacts are stored. The parent<br>
directory is created with permissions (0777 & ~umask).<br>
<br>
Security issues aside, this can't work reliably on a multi-user<br>
system. Does anyone know whether this is something peculiar<br>
to my FreeBSD setup, or a systemic issue with "stack ghci"?<br>
<br>
I don't see the same behaviour with "stack script", though<br>
if I create a script to run in "/tmp", then ghc is, somewhat<br>
unexpectely, executed with "-i/tmp/", which also has security<br>
implications...<br>
<br>
-- <br>
Viktor.<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>