delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/04/22/10:08:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 22 Apr 2004 11:36:00 +0300 (EET DST)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Sender: peuha AT sirppi DOT helsinki DOT fi
To: djgpp AT delorie DOT com
Subject: Emacs oddity with TMPDIR
Message-ID: <Pine.OSF.4.58.0404221114550.20168@sirppi.helsinki.fi>
MIME-Version: 1.0
Reply-To: esa DOT peuha AT Helsinki DOT fi

On my machine, I have TMPDIR, TEMP, and TMP all set to e: (my ram drive)
which seems to work fine, except that Emacs insists on changing TMPDIR
to c:/ while it's being run.  The reason for this is that the function
init_environment in msdos.c (in Emacs sources) calls access with the
value of each variable, but doesn't check that there's a trailing slash,
and this causes access to fail.  I'm not quite sure whether
access("e:", D_OK) should fail or not, but in either case, Emacs should
probably add the trailing slash before calling access and setting TMPDIR
(in case some Emacs functions assume that there is a trailing slash).

-- 
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019