Date: Mon, 2 Nov 1998 09:51:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg , DJGPP-WORKERS Subject: Re: df adventures In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com On Sun, 1 Nov 1998, I wrote: > All these problems don't happen to me: I still see my CDROM after the > change Well, it turns out I lied ;-). Please try the patch below, it should resurrect your CD-ROM drive. I still would like to know what causes that "No such drive" error, and whether "df r:" crashes or not after this patch (if it does crash, it seems like a bug in `df', judging by the traceback). *** src/libc/compat/mntent/mntent.c~5 Mon Oct 12 23:22:50 1998 --- src/libc/compat/mntent/mntent.c Mon Nov 2 09:27:10 1998 *************** getmntent(FILE *filep) *** 787,796 **** /* Floppies and other disks written by Windows 9X include entries that have volume label bit set, but they are actually parts of some LFN entry. We only accept volume ! labels which have all their RHS bits reset; otherwise ! we pretend we never saw that label. */ while (volume_found && ! (mnt_ff.ff_attrib & (FA_RDONLY|FA_HIDDEN|FA_SYSTEM)) != 0) { volume_found = 0; errno = ENMFILE; --- 787,796 ---- /* Floppies and other disks written by Windows 9X include entries that have volume label bit set, but they are actually parts of some LFN entry. We only accept volume ! labels which have their HS bits reset; otherwise we ! pretend we never saw that label. */ while (volume_found && ! (mnt_ff.ff_attrib & (FA_HIDDEN|FA_SYSTEM)) != 0) { volume_found = 0; errno = ENMFILE;