GNU bug report logs - #61326
30.0.50; Editing fil in zip file without extension save creates new file

Previous Next

Package: emacs;

Reported by: Adam Sjøgren <asjo <at> koldfront.dk>

Date: Mon, 6 Feb 2023 17:01:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 61326 <at> debbugs.gnu.org (full text, mbox):

From: Ruijie Yu <ruijie <at> netyu.xyz>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: asjo <at> koldfront.dk, 61326 <at> debbugs.gnu.org
Subject: Re: bug#61326: Adding --no-add-suffix to zip patch
Date: Tue, 07 Feb 2023 21:53:12 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: 61326 <at> debbugs.gnu.org
>> Date: Tue, 7 Feb 2023 09:31:11 +0800
>> From:  Ruijie Yu via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> Maybe, at least in the meantime, we change it such that all write operations
>> for zip create files in temp, and move to / overwrite the original file when
>> done? Although I don’t have a full understanding on how that would be done and
>> whether there are problems along with it.
>
> How about submitting a patch to do that, but only when the original
> file doesn't have an extension?

Will do.  Will report back in 2-3 days unless someone else gets to it
first.

Best,


RY




This bug report was last modified 2 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.