[tramp version 2.1.12] I think there is somewhere a too much optimistic assumption regarding short tracks taken when tramp-local-host-p is true
Probably around "tramp-handle-insert-file-contents" or in one of the functions it calls Evidence: By using "/sudo:<user>@localhost:/<file>" I get en empty buffer and "Permission denied" errors in tramp buffer, when using 127.0.0.1 instead, everything works ok, partial debug buffer contents: ///da7bc880997545f34eca93bb29ecfa4d 14:43:16 tramp-get-connection-property (7) # process-buffer nil 14:43:16 tramp-get-connection-property (7) # process-name nil 14:43:16 tramp-get-connection-property (7) # last-cmd-time (18325 62196 736502) 14:43:16 tramp-get-connection-property (7) # process-name nil 14:43:16 tramp-get-connection-property (7) # remote-echo nil 14:43:16 tramp-send-command (6) # cp -f /home/getlogs/.profile /tmp/U501680/tramp.303186uYe 14:43:16 tramp-get-connection-property (7) # process-name nil 14:43:16 tramp-get-connection-property (7) # chunksize 0 14:43:16 tramp-set-connection-property (7) # last-cmd-time (18325 62196 770147) 14:43:16 tramp-get-connection-property (7) # process-buffer nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-get-connection-property (7) # check-remote-echo nil 14:43:16 tramp-wait-for-regexp (6) # cp: /tmp/U501680/tramp.303186uYe: Permission denied I've made a temporary (and ugly) fix by adding those lines to dot-emacs: (require 'tramp) (defun tramp-local-host-p (vec) nil ) ----- -- Gilles -- View this message in context: http://www.nabble.com/-sudo%3A%3Cuser%3E%40172.0.0.1%3A-%3Cfile%3E-works%2C--sudo%3A%3Cuser%3E%40localhost%3A-%3Cfile%3E-doesn%27t-tp15019015p15019015.html Sent from the Gnu - Tramp - Dev mailing list archive at Nabble.com. _______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
