From 72a446736e19bd2caf81006f4e9711bd6c80de41 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 10 Dec 2010 13:56:44 +0200 Subject: [PATCH] arc-mode.el (archive-zip-extract): If w32-quote-process-args is nil, do quote archive member names. Suggested by hm . --- lisp/ChangeLog | 5 +++++ lisp/arc-mode.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4043498c2e5..97d78d8070c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-10 Eli Zaretskii + + * arc-mode.el (archive-zip-extract): If w32-quote-process-args is + nil, do quote archive member names. (Bug#6144) + 2010-12-10 Glenn Morris * files.el (diff-no-select): Declare. diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index a86203a47db..4a80b74e958 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -1813,10 +1813,12 @@ This doesn't recover lost files, it just undoes changes in the buffer itself." archive ;; unzip expands wildcards in NAME, so we need to quote it. But ;; not on DOS/Windows, since that fails extraction on those - ;; systems, and file names with wildcards in zip archives don't - ;; work there anyway. + ;; systems (unless w32-quote-process-args is nil), and file names + ;; with wildcards in zip archives don't work there anyway. ;; FIXME: Does pkunzip need similar treatment? - (if (and (not (memq system-type '(windows-nt ms-dos))) + (if (and (or (not (memq system-type '(windows-nt ms-dos))) + (and (boundp 'w32-quote-process-args) + (null w32-quote-process-args))) (equal (car archive-zip-extract) "unzip")) (shell-quote-argument name) name) -- 2.39.5