Gnus development mailing list
 help / color / mirror / Atom feed
From: Steven L Baur <steve@miranova.com>
Subject: Re: Humor value: user error
Date: 22 Nov 1996 14:45:20 -0800	[thread overview]
Message-ID: <m2viax3g1r.fsf@deanna.miranova.com> (raw)
In-Reply-To: David Moore's message of 22 Nov 1996 12:36:52 -0800

>>>>> "David" == David Moore <dmoore@UCSD.EDU> writes:

> Steven L Baur <steve@miranova.com> writes:

sb> A fix would be to keep a cache of expanded directory names, and
sb> not search the same directory twice after expansion of symbolic links.

David> 	Patch below for a couple of these situations in rgnus-0.68.
David> Then again you might just want to avoid making cycles in your Gnus
David> directory trees with symlinks. ;-)

Thanks for the patches David, but there are a couple of problems.  The
ChangeLog patch is corrupted (replace the 1,25 with 1,10).  And the
patches to nnml.el and gnus-score.el do not quite correct the problem.

Apply the following patch on top of David's patch to gnus-score.el to
get one fix.

[Tested with GNU Emacs 19.34 & XEmacs 19.15]

--- gnus-score.el~	Fri Nov 22 13:54:00 1996
+++ gnus-score.el	Fri Nov 22 14:21:57 1996
@@ -2372,8 +2372,8 @@
 	nil)
        ;; Add subtrees of directory to also be searched.
        ((and (file-directory-p file)
-	     (not (member file seen)))
-	(push file seen)
+	     (not (member (file-truename file) seen)))
+	(push (file-truename file) seen)
 	(setq files (nconc (directory-files file t nil t) files)))
        ;; Add files to the list of score files.
        ((string-match regexp file)

The same correction needs to be made to the nnml.el patch.  You need
to compare (file-truename)s to really defend against symbolic links.

Even with this fix, all files will get added twice due to the trailing
slash passed in, using Karl's example.  (Which is fine enough with me).

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"Bill Clinton is a bore.  He doesn't have a creative bone in his
body."  -- David Brinkley


  reply	other threads:[~1996-11-22 22:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-22 17:14 Karl Kleinpaste
1996-11-22 18:50 ` Steven L Baur
1996-11-22 20:14   ` Rich Pieri
1996-11-22 21:19     ` Michael R Cook
1996-11-22 22:20       ` Karl Kleinpaste
1996-11-25 14:09       ` Rich Pieri
1996-11-22 20:36   ` David Moore
1996-11-22 22:45     ` Steven L Baur [this message]
1996-11-22 19:35 ` Rich Pieri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2viax3g1r.fsf@deanna.miranova.com \
    --to=steve@miranova.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).