X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Thu, 22 Apr 2004 21:45:47 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Esa A E Peuha Message-Id: <2914-Thu22Apr2004214547+0300-eliz@gnu.org> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (message from Esa A E Peuha on Thu, 22 Apr 2004 11:36:00 +0300 (EET DST)) Subject: Re: Emacs oddity with TMPDIR References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Thu, 22 Apr 2004 11:36:00 +0300 (EET DST) > From: Esa A E Peuha > > On my machine, I have TMPDIR, TEMP, and TMP all set to e: (my ram drive) Why not set them to e:/ or e:\ ? > 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). I'm not sure it's Emacs's fault: "e:" is a bad value for a temporary directory, since the place it points to will change with the cwd on drive E. Emacs needs a fixed place for TMPDIR, so it could relate to it from any buffer and still find the files.