delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
Message-Id: | <10204160446.AA19165@clio.rice.edu> |
Subject: | Re: bash's "/dev/null: not a regular file" issue revisited |
To: | djgpp-workers AT delorie DOT com |
Date: | Mon, 15 Apr 2002 23:46:36 -0500 (CDT) |
In-Reply-To: | <53500112794.20020416190232@softhome.net> from "Laurynas Biveinis" at Apr 16, 2002 07:02:32 PM |
X-Mailer: | ELM [version 2.5 PL2] |
Mime-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> I still this bug with current refresh - so what was the outcome of the > discussion in January? Here's patch against 2.03 refresh: *** \djgpp\src\libc\posix\sys\stat\stat.c Thu Jun 3 13:27:40 1999 --- stat.c Tue Jan 8 22:05:42 2002 *************** stat_assist(const char *path, struct sta *** 600,603 **** --- 600,612 ---- statbuf->st_mode |= WRITE_ACCESS; + /* Windows 2000 and XP - devices don't set attributes correctly */ + if( (_djstat_fail_bits & _STFAIL_TRUENAME) && !ff_blk.ff_fsize && + !ff_blk.ff_ftime && (ff_blk.ff_fdate == 33) && + !ff_blk.lfn_ctime && (ff_blk.lfn_cdate == 33) && + !ff_blk.lfn_atime && (ff_blk.lfn_adate == 33) && + !strcmp(ff_blk.lfn_magic,"LFN32") && + /* strlen(ff_blk.ff_name) == 3 && */ ff_blk.ff_attrib == 0x20) + ff_blk.ff_attrib = 0x40; + /* Sometimes `_truename' doesn't return X:/FOO for character devices. However, FindFirst returns attribute 40h for them. */
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |