[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#355923: A simpler way to avoid clobbering the TMPDIR environment variable



On Wed, Aug  2, 2006 at 23:58:13 +0100, Sam Morris wrote:

> Could someone *please* look into making this very minor improvement to
> the /etc/X11/Xsession.d/90x11-common_ssh-agent file?

I think I'll go with this:

--- a/debian/local/Xsession.d/90x11-common_ssh-agent
+++ b/debian/local/Xsession.d/90x11-common_ssh-agent
@@ -17,8 +17,8 @@ if grep -qs ^use-ssh-agent "$OPTIONFILE"; then
   fi
 fi
 
 if [ -n "$STARTSSH" ]; then
-  STARTUP="$SSHAGENT $SSHAGENTARGS $STARTUP"
+  STARTUP="$SSHAGENT $SSHAGENTARGS ${TMPDIR:+env TMPDIR=$TMPDIR} $STARTUP"
 fi
 
 # vim:set ai et sts=2 sw=2 tw=80:

Sounds sane?

Cheers,
Julien



Reply to: