diff options
| author | Michael Albinus | 2008-07-28 03:56:41 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-07-28 03:56:41 +0000 |
| commit | 7f5344e1edfc004c6431baee119bbd6af9b726be (patch) | |
| tree | 288d6e87ead5054bf420d24e779388d3b02c7954 | |
| parent | 4874e0882eff39f280c9b2b907abe411833f79a8 (diff) | |
| download | emacs-7f5344e1edfc004c6431baee119bbd6af9b726be.tar.gz emacs-7f5344e1edfc004c6431baee119bbd6af9b726be.zip | |
* net/tramp.el (tramp-perl-directory-files-and-attributes)
(tramp-get-device): Make device number a cons cell.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 74ee8238546..b7f0f8da1ec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-07-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-perl-directory-files-and-attributes) | ||
| 4 | (tramp-get-device): Make device number a cons cell. | ||
| 5 | |||
| 1 | 2008-07-25 Chong Yidong <cyd@stupidchicken.com> | 6 | 2008-07-25 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * textmodes/tex-mode.el (tex-compilation-parse-errors): Check for | 8 | * textmodes/tex-mode.el (tex-compilation-parse-errors): Check for |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 14cc6088497..0f6cb06cce8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1671,7 +1671,7 @@ we have this shell function.") | |||
| 1671 | ;; unless this spits out a complete line, including the '\n' at the | 1671 | ;; unless this spits out a complete line, including the '\n' at the |
| 1672 | ;; end. | 1672 | ;; end. |
| 1673 | ;; The device number is returned as "-1", because there will be a virtual | 1673 | ;; The device number is returned as "-1", because there will be a virtual |
| 1674 | ;; device number set in `tramp-handle-file-attributes' | 1674 | ;; device number set in `tramp-handle-file-attributes'. |
| 1675 | (defconst tramp-perl-file-attributes "\ | 1675 | (defconst tramp-perl-file-attributes "\ |
| 1676 | @stat = lstat($ARGV[0]); | 1676 | @stat = lstat($ARGV[0]); |
| 1677 | if (($stat[2] & 0170000) == 0120000) | 1677 | if (($stat[2] & 0170000) == 0120000) |
| @@ -1736,7 +1736,7 @@ for($i = 0; $i < $n; $i++) | |||
| 1736 | $uid = ($ARGV[1] eq \"integer\") ? $stat[4] : \"\\\"\" . getpwuid($stat[4]) . \"\\\"\"; | 1736 | $uid = ($ARGV[1] eq \"integer\") ? $stat[4] : \"\\\"\" . getpwuid($stat[4]) . \"\\\"\"; |
| 1737 | $gid = ($ARGV[1] eq \"integer\") ? $stat[5] : \"\\\"\" . getgrgid($stat[5]) . \"\\\"\"; | 1737 | $gid = ($ARGV[1] eq \"integer\") ? $stat[5] : \"\\\"\" . getgrgid($stat[5]) . \"\\\"\"; |
| 1738 | printf( | 1738 | printf( |
| 1739 | \"(\\\"%s\\\" %s %u %s %s (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\\n\", | 1739 | \"(\\\"%s\\\" %s %u %s %s (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u . %u))\\n\", |
| 1740 | $filename, | 1740 | $filename, |
| 1741 | $type, | 1741 | $type, |
| 1742 | $stat[3], | 1742 | $stat[3], |
| @@ -2343,7 +2343,7 @@ target of the symlink differ." | |||
| 2343 | ;; provided by "lstat" aren't unique, because we operate on different hosts. | 2343 | ;; provided by "lstat" aren't unique, because we operate on different hosts. |
| 2344 | ;; So we use virtual device numbers, generated by Tramp. Both Ange-FTP and | 2344 | ;; So we use virtual device numbers, generated by Tramp. Both Ange-FTP and |
| 2345 | ;; EFS use device number "-1". In order to be different, we use device number | 2345 | ;; EFS use device number "-1". In order to be different, we use device number |
| 2346 | ;; (-1 x), whereby "x" is unique for a given (multi-method method user host). | 2346 | ;; (-1 . x), whereby "x" is unique for a given (multi-method method user host). |
| 2347 | (defvar tramp-devices nil | 2347 | (defvar tramp-devices nil |
| 2348 | "Keeps virtual device numbers.") | 2348 | "Keeps virtual device numbers.") |
| 2349 | 2349 | ||
| @@ -7005,7 +7005,7 @@ If it doesn't exist, generate a new one." | |||
| 7005 | (unless (assoc string tramp-devices) | 7005 | (unless (assoc string tramp-devices) |
| 7006 | (add-to-list 'tramp-devices | 7006 | (add-to-list 'tramp-devices |
| 7007 | (list string (length tramp-devices)))) | 7007 | (list string (length tramp-devices)))) |
| 7008 | (list -1 (nth 1 (assoc string tramp-devices))))) | 7008 | (cons -1 (nth 1 (assoc string tramp-devices))))) |
| 7009 | 7009 | ||
| 7010 | (defun tramp-file-mode-from-int (mode) | 7010 | (defun tramp-file-mode-from-int (mode) |
| 7011 | "Turn an integer representing a file mode into an ls(1)-like string." | 7011 | "Turn an integer representing a file mode into an ls(1)-like string." |