🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #944

Re: **WARNING** Mush 7.0.0 scrambles mailbox

#944
From: Tom Neff
Date: Fri, 15 Dec 1989 20:21
22 lines
1621 bytes
In article <6200@ogicse.ogc.edu> schaefer@ogicse.UUCP (Barton E. Schaefer) writes:
>In article <8912151519.AA05853@xenna.Xylogics.COM> loverso@Xylogics.COM (John Robert LoVerso) writes:
>}    Additionally, I have many subfolders (over 250 in several levels of
>}    subdirectories).  At the minimum, it would be useful to have directories
>}    listed with a trailing "/" on them.
>
>This was considered but rejected because it requires a stat() on every
>file in the listing.  On many systems, this would cause a very noticable
>slowing of the completion routines.

Consider adopting the clever hack mentioned recently in another
newsgroup.  Under UNIX if the link count for a directory is 2 or less,
it has no subdirectories and you need not perform the stat(2) on each of
its files.  If it has link count 3 or greater, subdirectories exist, but
you need only keep stat(2)'ing until you have found (link count - 2) of
them, after that everything must be a file.

This is admittedly UNIX dependent but would be worth having optionally
in config.h for those who want it.
-- 
"DO NOT, repeat, DO NOT blow the hatch!"  /)\   Tom Neff
"Roger....hatch blown!"                   \(/   tneff@bfmny0.UU.NET
Technical Details
Message-ID: <15004@bfmny0.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!bfmny0!tneff
References: <8912151519.AA05853@xenna.Xylogics.COM> <6200@ogicse.ogc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!bfmny0!tneff
From: tneff@bfmny0.UU.NET (Tom Neff)
Newsgroups: comp.mail.mush
Subject: Re: **WARNING** Mush 7.0.0 scrambles mailbox
Message-ID: <15004@bfmny0.UU.NET>
Date: 15 Dec 89 20:21:07 GMT
References: <8912151519.AA05853@xenna.Xylogics.COM> <6200@ogicse.ogc.edu>
Reply-To: tneff@bfmny0.UU.NET (Tom Neff)
Lines: 22