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

Date: Sun, 12 Jul 1998 19:06:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gerhard Gruber <sparhawk AT eunet DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: Compile gives Abort! error
In-Reply-To: <35ab1c76.18464183@news.Austria.EU.net>
Message-ID: <Pine.SUN.3.91.980712190633.27114B-100000@is>
MIME-Version: 1.0

On Thu, 9 Jul 1998, Gerhard Gruber 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?
> 
> Shouldn't fstat do the job?

You probably mean stat, not fstat.

Anyway, stat cannot be the solution here because DOS itself doesn't
set the read-only attribute for directories on non-writable
filesystems, at least not in all cases.

> I don't know about dos but under unix
> this returns also the information wether you habe write access or
> not. If the function is pretty much the same you can use it.

Unix is *very* different from DOS in this context.

- Raw text -


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