[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/sudo:<user>@172.0.0.1:/<file> works, /sudo:<user>@localhost:/<file> doe
From: |
Gilles Pion |
Subject: |
/sudo:<user>@172.0.0.1:/<file> works, /sudo:<user>@localhost:/<file> doesn't |
Date: |
Tue, 22 Jan 2008 05:57:26 -0800 (PST) |
[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.
- /sudo:<user>@172.0.0.1:/<file> works, /sudo:<user>@localhost:/<file> doesn't,
Gilles Pion <=