Mail Archives: djgpp-workers/1998/11/03/12:33:54
According to Eli Zaretskii:
> > So one solution would be changing the first line to "show_dev (0, mp,
> > "");" Another one would be changing the second one to "if (fstype &&
> > strcmp (fstype, "join") == 0)". There's perhaps more of them. But I
> > don't know what is the Right Way(tm) to do it. Perhaps Eli has the
> > right answer?
>
> The second solution seems like the right one, since the bug is in the
> DJGPP-specific code I added there. It would be interesting to see
> whether it will crash further down the road, after you fix this one,
> since the logic that winds up running this code is entirely alien to
> DOS and Windows.
Ok, patch for df last in this message.
Interestingly, with this even a music CD is reported:
Filesystem 1024-blocks Used Available Capacity Mounted on
- 688028 688028 0 100% r:/
Pettersson, Symphony No. 12,
MartinS
--- filutil3.16/src/df.c~ Sat Mar 8 21:11:26 1997
+++ filutil3.16/src/df.c Tue Nov 3 16:25:30 1998
@@ -270,7 +270,7 @@
#ifdef __DJGPP__
/* JOINed disks seem like a directory on another disk.
We want to see the info about the real drive. */
- if (strcmp (fstype, "join") == 0)
+ if (fstype && strcmp (fstype, "join") == 0)
{
struct stat real_drive_stats;
- Raw text -