changeset 21026:e01ca278ca3e

(ange-ftp-call-chmod): Don't try to chmod file `--'.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Mar 1998 22:21:46 +0000
parents c70f0ae7a1a3
children 517de9005275
files lisp/ange-ftp.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ange-ftp.el	Mon Mar 02 20:03:55 1998 +0000
+++ b/lisp/ange-ftp.el	Mon Mar 02 22:21:46 1998 +0000
@@ -4278,7 +4278,10 @@
 (defun ange-ftp-call-chmod (args)
   (if (< (length args) 2)
       (error "ange-ftp-call-chmod: missing mode and/or filename: %s" args))
-  (let ((mode (car args)))
+  (let ((mode (car args))
+	(rest (cdr args)))
+    (if (equal "--" (car rest))
+	(setq rest (cdr rest)))
     (mapcar
      (function
       (lambda (file)
@@ -4297,7 +4300,7 @@
 		    (call-process 
 		     ange-ftp-remote-shell
 		     nil t nil host "chmod" mode name)))))))
-     (cdr args)))
+     rest))
   (setq ange-ftp-ls-cache-file nil)	;Stop confusing Dired.
   0)