GNU bug report logs -
#56603
[PATCH] Ensure that directories exist when copying files from archive
Previous Next
Reported by: Visuwesh <visuweshm <at> gmail.com>
Date: Sat, 16 Jul 2022 15:21:02 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56603 in the body.
You can then email your comments to 56603 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56603
; Package
emacs
.
(Sat, 16 Jul 2022 15:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Visuwesh <visuweshm <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 16 Jul 2022 15:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
If a zip file is of the following contents,
a/some-text.txt
a/b/some-other.txt
and you mark all files and extract them to the directory /tmp/test/, the current copy
command bugs out since `write-to-region' complains about /tmp/test/a/ and
/tmp/test/a/b/ not existing.
If you tried to extract a single file a/some-text.txt after answer /tmp/
to the prompt, the C command fails due to the above reason.
This patch creates the relevant directories if they don't exist. But
perhaps the patch should be more robust? I.e., if /tmp/test/a was a
file, then it should error?
In GNU Emacs 29.0.50 (build 21, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
of 2022-07-16 built on astatine
Repository revision: 9a5b52dace4cb0fe6b99205911d9b2f2487a4a83
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Debian GNU/Linux bookworm/sid
Configured using:
'configure --with-sound=alsa --with-x-toolkit=lucid --with-json
--without-xaw3d --without-gconf --without-libsystemd --without-cairo'
[0001-Ensure-that-directories-exist-when-copying-files-fro.patch (text/patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56603
; Package
emacs
.
(Sun, 17 Jul 2022 09:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 56603 <at> debbugs.gnu.org (full text, mbox):
Visuwesh <visuweshm <at> gmail.com> writes:
> This patch creates the relevant directories if they don't exist. But
> perhaps the patch should be more robust? I.e., if /tmp/test/a was a
> file, then it should error?
We'll get an error from that make-directory call, and I think that's
sufficient, so I've pushed your patch to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 29.1, send any further explanations to
56603 <at> debbugs.gnu.org and Visuwesh <visuweshm <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 17 Jul 2022 09:24:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56603
; Package
emacs
.
(Sun, 17 Jul 2022 09:59:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 56603 <at> debbugs.gnu.org (full text, mbox):
[ஞாயிறு ஜூலை 17, 2022] Lars Ingebrigtsen wrote:
> Visuwesh <visuweshm <at> gmail.com> writes:
>
>> This patch creates the relevant directories if they don't exist. But
>> perhaps the patch should be more robust? I.e., if /tmp/test/a was a
>> file, then it should error?
>
> We'll get an error from that make-directory call, and I think that's
> sufficient, so I've pushed your patch to Emacs 29.
Thanks
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 14 Aug 2022 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 4 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.