(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)
(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)
\f