Commit 72a44673 authored by Eli Zaretskii's avatar Eli Zaretskii

arc-mode.el (archive-zip-extract): If w32-quote-process-args is nil, do quote

 archive member names.  Suggested by hm <helmut.muelner@joanneum.at>.
parent 66f782de
2010-12-10 Eli Zaretskii <eliz@gnu.org>
* 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 <rgm@gnu.org>
* files.el (diff-no-select): Declare.
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment