GNU bug report logs -
#5414
23.1.91; /sys/devices files trigger loading tramp
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Mon, 18 Jan 2010 20:41:03 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 5414 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong <cyd <at> stupidchicken.com> writes:
> Here's a proper recipe for reproducing this (the previous recipe does
> not do it, maybe it was untested):
>
> emacs -Q
> C-x C-f
> C-a C-k
> /sys/devices/pc [TAB]
> => Tramp will be loaded
Thanks, I can reproduce it as well.
Tramp is loaded due to `rfn-eshadow-update-overlay'. In the loop
commented with "Binary search ...", it recomputes `mid', and calls
`rfn-eshadow-sifn-equal'. This function applies
`substitute-in-file-name' for a part of the the whole file name, which
looks like a remote file name, accidently. Bingo!
See the backtrace:
tramp-file-name-handler(substitute-in-file-name "/pci0000:00/")
substitute-in-file-name("/pci0000:00/")
byte-code("ÁÂd\"!" [pos substitute-in-file-name buffer-substring-no-properties] 4)
byte-code("ÆÇ !È!É d; ='