www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/12/12:07:24

Date: Sun, 12 Jul 1998 19:06:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Compile gives Abort! error
In-Reply-To: <35A442C3.B06EDBF2@cs.com>
Message-ID: <Pine.SUN.3.91.980712190512.27114A-100000@is>
MIME-Version: 1.0

On Thu, 9 Jul 1998, John M. Aldrich wrote:

> I think I should add a test for TMPDIR to DJVERIFY, except that I still
> haven't figured out how to test a drive/directory for writeability...
> any ideas?

The only way to be sure is to create a file and see if that succeeds,
then delete it.  Nothing else will work, since DOS/Windows cannot be
bothered to return correct directory attributes on read-only
filesystems.  For that matter, I think DOS itself doesn't even know
that a filesystem is read-only until it tries to write there.  For
example, consider a write-protected floppy.

- Raw text -


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