www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/07:45:11

Date: Thu, 24 Apr 1997 14:37:28 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jim Hunter <jim DOT hunter AT jhuapl DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: A Globbing Problem
In-Reply-To: <335BF613.5BAB@jhuapl.edu>
Message-ID: <Pine.SUN.3.91.970424143709.11402S-100000@is>
MIME-Version: 1.0

On Mon, 21 Apr 1997, Jim Hunter wrote:

> I think I've found a bug here with either the DJGGP compiler
> or Win95 in the behaviour of _dos_fileattr on globbed long names. 
> I've included a short test program and would be grateful if 
> someone with a similiar system could run this and tell me
> your results. I'm running Win95 with DJGPP v2.7.2. A
> workaround I've found is to use _chmod with 0 agruments.

That's not a bug, that's a feature.  The `_dos_XXX' functions don't
support long filenames.  Use `_chmod' which does.

The `_dos_XXX' functions are there only with compatibility with
Microsoft C compilers, no more, no less.

- Raw text -


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