[Freedos-kernel] Re: DELTREE gets error 5 for directories since 2035a

2005-04-11 Thread Eric Auer

Hi, Lucho pointed out that DELTREE got error 5 because it had
code which does if OEM ID is 0FDh and CX is 0 or -1, then
explicitly exclude the DIR attribute when resetting file attribs
in preparation of deletion. This code is triggered by 2035a as
it sets CX to 0, which is needed by 32RTM DOS extender. The -1
value marked VERY old DOS-C / FreeDOS kernels which needed the
special DELTREE behaviour to avoid directories becoming files
(oops)...

The solution is two-part: The http://fdos.org/kernel/ page has
kernels which ignore dir attribute access when you change file
attributes (although it is common and okay to just respond with
error 5, as 2035a does), and I have a patched version of DELTREE
(which also is a bit smaller, less than 3 kB UPXed) which works
with kernel 2035a. No reply from Raster about it yet, strange...

http://www.coli.uni-sb.de/~eric/deltree-1.02f.zip

(temporary location)

Eric



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Re: DELTREE gets error 5 for directories since 2035a

2005-04-10 Thread Jim Hall
Oops ... should have checked that more closely before posting.  Eric is 
not the maintainer, of course.  I've moved Eric's 1.02f into a subdir on 
ibiblio, and I'll try to reach Raster to see if this can become an 
official release of 1.02f.

-jh

Jim Hall wrote:
Eric,
I've mirrored your DELTREE 1.02f at ibiblio:
http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/deltree/
I'll also update the LSM database.
Feel free to make an announcement on the FreeDOS.org page, if you want 
it announced there.

-jh

Eric Auer wrote:
Hi, Lucho pointed out that DELTREE got error 5 because it had
code which does if OEM ID is 0FDh and CX is 0 or -1, then
explicitly exclude the DIR attribute when resetting file attribs
in preparation of deletion. This code is triggered by 2035a as
it sets CX to 0, which is needed by 32RTM DOS extender. The -1
value marked VERY old DOS-C / FreeDOS kernels which needed the
special DELTREE behaviour to avoid directories becoming files
(oops)...
The solution is two-part: The http://fdos.org/kernel/ page has
kernels which ignore dir attribute access when you change file
attributes (although it is common and okay to just respond with
error 5, as 2035a does), and I have a patched version of DELTREE
(which also is a bit smaller, less than 3 kB UPXed) which works
with kernel 2035a. No reply from Raster about it yet, strange...
http://www.coli.uni-sb.de/~eric/deltree-1.02f.zip
(temporary location)
Eric


--
I'm sorry my president's an idiot. I didn't vote for him.
---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel