www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/10/06/07:19:55

Date: Tue, 6 Oct 1998 14:19:59 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: getmntent and bogus disk labels
In-Reply-To: <199810050727.JAA03764@mars.lu.erisoft.se>
Message-ID: <Pine.SUN.3.91.981006141942.17118F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Mon, 5 Oct 1998, Martin Stromberg wrote:

> > Did you notice that `getmntent' on plain DOS returns a bogus filesystem
> > name for floppies that were written with LFN support?  Well, the 
> 
> How does this problem look? Any chance that the labels look like "Aw",
> "Ad" or similarly?

Exactly.

> Reason I ask is df says "Aw" instead of "DriveD" and DOZE's label
> program can't delete the label...

Because that's not a label, but a part of an LFN entry, and it has
hidden and system attributes set, so I guess LABEL panics.

Please try the patch I sent (compile mntent.c with -DTEST and see what
the test program prints for the same floppy where those funny labels
show).  The patched version works for me, but additional testing will
never hurt ;-).

- Raw text -


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