diff options
| author | Kai Großjohann | 2002-08-05 14:58:21 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2002-08-05 14:58:21 +0000 |
| commit | 5beaf83194cb9e3a7c7eeefb5d7f719e2069f08a (patch) | |
| tree | 7c1857f8fc2d228cff47a5e235ddc0a1d39b8457 | |
| parent | 2363bd8daa375b4cd50331ab13523dbaebd226dc (diff) | |
| download | emacs-5beaf83194cb9e3a7c7eeefb5d7f719e2069f08a.tar.gz emacs-5beaf83194cb9e3a7c7eeefb5d7f719e2069f08a.zip | |
Version 2.0.11 released.
(tramp-perl-file-attributes): Print uid and gid as signed
integers.
(tramp-invoke-ange-ftp): Correct check for Ange-FTP being loaded.
Invoke Ange-FTP with tramp-run-real-handler to avoid Ange-FTP
calling Tramp again.
(tramp-find-file-exists-command): Check for `ls -d' last, after
all the variants on `test -e'.
(tramp-post-connection): Erase buffer before finding a command to
check if file exists.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 21 |
2 files changed, 24 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 07c84bea436..5e66842fa6e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2002-08-05 Kai Gro,b_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> | ||
| 2 | |||
| 3 | * net/tramp.el: Version 2.0.11 released. | ||
| 4 | (tramp-perl-file-attributes): Print uid and gid as signed | ||
| 5 | integers. | ||
| 6 | (tramp-invoke-ange-ftp): Correct check for Ange-FTP being loaded. | ||
| 7 | Invoke Ange-FTP with tramp-run-real-handler to avoid Ange-FTP | ||
| 8 | calling Tramp again. | ||
| 9 | (tramp-find-file-exists-command): Check for `ls -d' last, after | ||
| 10 | all the variants on `test -e'. | ||
| 11 | (tramp-post-connection): Erase buffer before finding a command to | ||
| 12 | check if file exists. | ||
| 13 | |||
| 1 | 2002-08-05 David Kastrup <David.Kastrup@t-online.de> | 14 | 2002-08-05 David Kastrup <David.Kastrup@t-online.de> |
| 2 | 15 | ||
| 3 | * calc/calc.el (math-format-stack-value): Revert a broken | 16 | * calc/calc.el (math-format-stack-value): Revert a broken |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index d9ecc6ec4b8..18c5e82a68b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -72,7 +72,7 @@ | |||
| 72 | ;; In the Tramp CVS repository, the version numer is auto-frobbed from | 72 | ;; In the Tramp CVS repository, the version numer is auto-frobbed from |
| 73 | ;; the Makefile, so you should edit the top-level Makefile to change | 73 | ;; the Makefile, so you should edit the top-level Makefile to change |
| 74 | ;; the version number. | 74 | ;; the version number. |
| 75 | (defconst tramp-version "2.0.10" | 75 | (defconst tramp-version "2.0.11" |
| 76 | "This version of tramp.") | 76 | "This version of tramp.") |
| 77 | 77 | ||
| 78 | (defconst tramp-bug-report-address "tramp-devel@mail.freesoftware.fsf.org" | 78 | (defconst tramp-bug-report-address "tramp-devel@mail.freesoftware.fsf.org" |
| @@ -1216,17 +1216,16 @@ some systems don't, and for them we have this shell function.") | |||
| 1216 | ;; output. If you are hacking on this, note that you get *no* output | 1216 | ;; output. If you are hacking on this, note that you get *no* output |
| 1217 | ;; unless this spits out a complete line, including the '\n' at the | 1217 | ;; unless this spits out a complete line, including the '\n' at the |
| 1218 | ;; end. | 1218 | ;; end. |
| 1219 | (defconst tramp-perl-file-attributes (concat | 1219 | (defconst tramp-perl-file-attributes "\ |
| 1220 | "$f = $ARGV[0]; | 1220 | $f = $ARGV[0]; |
| 1221 | @s = lstat($f); | 1221 | @s = lstat($f); |
| 1222 | if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = \"\\\"$l\\\"\"; } | 1222 | if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = \"\\\"$l\\\"\"; } |
| 1223 | elsif (($s[2] & 0170000) == 040000) { $l = \"t\"; } | 1223 | elsif (($s[2] & 0170000) == 040000) { $l = \"t\"; } |
| 1224 | else { $l = \"nil\" }; | 1224 | else { $l = \"nil\" }; |
| 1225 | printf(\"(%s %u %u %u (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\\n\", | 1225 | printf(\"(%s %u %d %d (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\\n\", |
| 1226 | $l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff, | 1226 | $l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff, |
| 1227 | $s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] & 0xffff, | 1227 | $s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] & 0xffff, |
| 1228 | $s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff, $s[0] & 0xffff);" | 1228 | $s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff, $s[0] & 0xffff);" |
| 1229 | ) | ||
| 1230 | "Perl script to produce output suitable for use with `file-attributes' | 1229 | "Perl script to produce output suitable for use with `file-attributes' |
| 1231 | on the remote file system.") | 1230 | on the remote file system.") |
| 1232 | 1231 | ||
| @@ -3189,14 +3188,15 @@ necessary anymore." | |||
| 3189 | 3188 | ||
| 3190 | (defun tramp-invoke-ange-ftp (operation &rest args) | 3189 | (defun tramp-invoke-ange-ftp (operation &rest args) |
| 3191 | "Invoke the Ange-FTP handler function and throw." | 3190 | "Invoke the Ange-FTP handler function and throw." |
| 3192 | (or ange-ftp-name-format (require 'ange-ftp)) | 3191 | (or (boundp 'ange-ftp-name-format) (require 'ange-ftp)) |
| 3193 | (let ((ange-ftp-name-format | 3192 | (let ((ange-ftp-name-format |
| 3194 | (list (nth 0 tramp-file-name-structure) | 3193 | (list (nth 0 tramp-file-name-structure) |
| 3195 | (nth 3 tramp-file-name-structure) | 3194 | (nth 3 tramp-file-name-structure) |
| 3196 | (nth 2 tramp-file-name-structure) | 3195 | (nth 2 tramp-file-name-structure) |
| 3197 | (nth 4 tramp-file-name-structure)))) | 3196 | (nth 4 tramp-file-name-structure)))) |
| 3198 | (throw 'tramp-forward-to-ange-ftp | 3197 | (throw 'tramp-forward-to-ange-ftp |
| 3199 | (apply 'ange-ftp-hook-function operation args)))) | 3198 | (tramp-run-real-handler 'ange-ftp-hook-function |
| 3199 | (cons operation args))))) | ||
| 3200 | 3200 | ||
| 3201 | (defun tramp-ange-ftp-file-name-p (multi-method method) | 3201 | (defun tramp-ange-ftp-file-name-p (multi-method method) |
| 3202 | "Check if it's a filename that should be forwarded to Ange-FTP." | 3202 | "Check if it's a filename that should be forwarded to Ange-FTP." |
| @@ -3470,9 +3470,6 @@ file exists and nonzero exit status otherwise." | |||
| 3470 | ;; `/usr/bin/test'. | 3470 | ;; `/usr/bin/test'. |
| 3471 | ;; `/usr/bin/test -e' In case `/bin/test' does not exist. | 3471 | ;; `/usr/bin/test -e' In case `/bin/test' does not exist. |
| 3472 | (unless (or | 3472 | (unless (or |
| 3473 | (and (setq tramp-file-exists-command "ls -d %s") | ||
| 3474 | (tramp-handle-file-exists-p existing) | ||
| 3475 | (not (tramp-handle-file-exists-p nonexisting))) | ||
| 3476 | (and (setq tramp-file-exists-command "test -e %s") | 3473 | (and (setq tramp-file-exists-command "test -e %s") |
| 3477 | (tramp-handle-file-exists-p existing) | 3474 | (tramp-handle-file-exists-p existing) |
| 3478 | (not (tramp-handle-file-exists-p nonexisting))) | 3475 | (not (tramp-handle-file-exists-p nonexisting))) |
| @@ -3481,6 +3478,9 @@ file exists and nonzero exit status otherwise." | |||
| 3481 | (not (tramp-handle-file-exists-p nonexisting))) | 3478 | (not (tramp-handle-file-exists-p nonexisting))) |
| 3482 | (and (setq tramp-file-exists-command "/usr/bin/test -e %s") | 3479 | (and (setq tramp-file-exists-command "/usr/bin/test -e %s") |
| 3483 | (tramp-handle-file-exists-p existing) | 3480 | (tramp-handle-file-exists-p existing) |
| 3481 | (not (tramp-handle-file-exists-p nonexisting))) | ||
| 3482 | (and (setq tramp-file-exists-command "ls -d %s") | ||
| 3483 | (tramp-handle-file-exists-p existing) | ||
| 3484 | (not (tramp-handle-file-exists-p nonexisting)))) | 3484 | (not (tramp-handle-file-exists-p nonexisting)))) |
| 3485 | (error "Couldn't find command to check if file exists.")))) | 3485 | (error "Couldn't find command to check if file exists.")))) |
| 3486 | 3486 | ||
| @@ -4456,6 +4456,7 @@ locale to C and sets up the remote shell search path." | |||
| 4456 | ;; | 4456 | ;; |
| 4457 | ;; Daniel Pittman <daniel@danann.net> | 4457 | ;; Daniel Pittman <daniel@danann.net> |
| 4458 | (sleep-for 1) | 4458 | (sleep-for 1) |
| 4459 | (erase-buffer) | ||
| 4459 | (tramp-find-file-exists-command multi-method method user host) | 4460 | (tramp-find-file-exists-command multi-method method user host) |
| 4460 | (make-local-variable 'tramp-ls-command) | 4461 | (make-local-variable 'tramp-ls-command) |
| 4461 | (setq tramp-ls-command (tramp-find-ls-command multi-method method user host)) | 4462 | (setq tramp-ls-command (tramp-find-ls-command multi-method method user host)) |