emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp is keeping ange-ftp from finding .netrc


From: Richard.G.Bielawski
Subject: Tramp is keeping ange-ftp from finding .netrc
Date: Mon, 18 Jul 2005 19:50:45 -0500

I need to use a .netrc file for several reasons.
But I keep running into a problem where ange-ftp fails to read the .netrc.
This causes the wrong user id to be used in accessing the remote file.
I traced it down to this.
 
Debugger entered--returning value: "/emacs/.netrc"
* tramp-drop-volume-letter("h:/emacs/.netrc")
* tramp-completion-handle-expand-file-name("~/.netrc" "/")
* apply(tramp-completion-handle-expand-file-name ("~/.netrc" "/"))
* tramp-completion-file-name-handler(expand-file-name "~/.netrc" "/")
* expand-file-name("~/.netrc")
* apply(expand-file-name "~/.netrc")
* ange-ftp-run-real-handler(expand-file-name ("~/.netrc"))
* ange-ftp-real-expand-file-name("~/.netrc")
* byte-code(
* ange-ftp-parse-netrc()
 
After tramp chops the drive letter ange-ftp can't find the file.
It's obvious why from the trace below.
Without the .netrc ange-ftp uses the users local ID which is wrong.
 
Debugger entered--returning value: "c:/emacs/.netrc"
  expand-file-name("/emacs/.netrc" "/")
* apply(expand-file-name ("/emacs/.netrc" "/"))
* tramp-completion-run-real-handler(expand-file-name ("/emacs/.netrc" "/"))
* tramp-completion-handle-expand-file-name("/emacs/.netrc" "/")
* apply(tramp-completion-handle-expand-file-name ("/emacs/.netrc" "/"))
* tramp-completion-file-name-handler(expand-file-name "/emacs/.netrc" "/")
* file-symlink-p("/emacs/.netrc")
* apply(file-symlink-p "/emacs/.netrc")
* ange-ftp-run-real-handler(file-symlink-p ("/emacs/.netrc"))
* ange-ftp-real-file-symlink-p("/emacs/.netrc")
* ange-ftp-chase-symlinks("/emacs/.netrc")
* byte-code(
* ange-ftp-parse-netrc()

Richard Bielawski
612-667-5039

 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]