delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/11/02/02:52:49.1

Date: Mon, 2 Nov 1998 09:51:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>,
DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: df adventures
In-Reply-To: <Pine.SUN.3.91.981101192206.8219C-100000@is>
Message-ID: <Pine.SUN.3.91.981102095037.11234A-100000@is>
MIME-Version: 1.0
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;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019