Hi All,

A few days ago, Willi discovered an odd File Name related bug.

When installing the ADT2 package[1] from the repository at FD.LOD.BZ using 
FDNPKG, it would install the 999 files in the package. However, the 
FREEDOS\PACKAGES\ADT2.LST file would only contain about 300 entries. 
Uninstalling the package would obviously leave many files behind. There may 
have also been some file system corruption during the install. 

The issue did not occur under DOSBox Staging with FreeDOS installed in "Hybrid 
mode". The "Hybrid mode" install under DOSBox(s) is mostly the same as a that 
for a virtual machines or real hardware with one major exception. The "Hybrid 
mode" install does not use the FreeDOS kernel. It uses the DOSBox kernel. This 
permits the easy exchange of files to and from the host system. Other things, 
like FreeCOM and drivers from FreeDOS are used in the install. This type of 
install is extremely useful as a development environment for many types of DOS 
programs. 

I then tested this under VirtualBox and could replicate the issue he found 
easily. However, the problem installing ADT2 did not occur when DOSLFN was not 
loaded. But wait, there is more…

Willi also tested a few other packages and discovered a similar issue with 
Arachne[2]. But in this case, the presence of DOSLFN did not matter. But, 
installing via FDNPKG or FDINST made the difference.

In regards to both packages, there are a couple odd characters in some file 
names. One contains an ampersand and the other exclamation points. According to 
a wiki on 8.3 file names[3], these are permissible without LFN support.

At this time it is unclear where the bug is located. It could reside in the 
KERNEL, DOSLFN, FDNPKG or elsewhere.

The new FDRepo v3 can pull files directly from GitLab and generate packages for 
download/update repositories. When it does that, it scans for and 
pre-compresses LFN files using an algorithm based on that wiki page[3]. I could 
easily make it more restrictive than what is permitted in 8.3 file names. 
However, that would not fix the actual problem and could have other side 
effects when installing packages.

Jerome

[1] https://fd.lod.bz/repository/latest/html/en/sound/adt2/index.html
[2] https://fd.lod.bz/repository/latest/html/en/net/arachne/index.html
[3] https://en.wikipedia.org/wiki/8.3_filename




_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to