GNU bug report logs -
#5540
23.1.92; failed to access zip inside zip when not using tramp
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Sun, 7 Feb 2010 17:04:01 UTC
Severity: normal
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 5540 <at> debbugs.gnu.org (full text, mbox):
> I currently don't understand the decision to use archive-remote=t
> for nested archives (this is an old decision), but perhaps they
> should be distinguished from remote archives with a new variable
> or a new value of `archive-remote'?
Actually for remote archives `archive-remote' is 0 and for nested
archives `archive-remote' is t. But this difference doesn't matter.
The following patch creates the directories for nested archives:
=== modified file 'lisp/arc-mode.el'
--- lisp/arc-mode.el 2010-02-04 19:54:46 +0000
+++ lisp/arc-mode.el 2010-02-09 21:12:51 +0000
@@ -850,6 +850,11 @@ (defun archive-unique-fname (fname dir)
;; reconstructed in the temporary directory.
(make-directory (file-name-directory tmpfile) t)
(make-temp-file tmpfile))
+ ;; Maked sure all the leading directories in `fullname' exist
+ ;; under archive-tmpdir. This is necessary for nested archives
+ ;; (`archive-extract' sets `archive-remote' to t in case
+ ;; an archive occurs inside another archive).
+ (make-directory (file-name-directory fullname) t)
fullname)))
(defun archive-maybe-copy (archive)
--
Juri Linkov
http://www.jurta.org/emacs/
This bug report was last modified 15 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.