From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode Date: Sat, 18 Mar 2023 20:16:08 +0100 Message-ID: <87mt49na4n.fsf@ledu-giraud.fr> References: <87v8iynl5c.fsf@ledu-giraud.fr> <83h6uiawvv.fsf@gnu.org> <87r0tlnbtz.fsf@ledu-giraud.fr> <83bkkpc2x6.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62260@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 20:17:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pdc3U-0005jl-A4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 20:17:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdc36-0006Pe-I0; Sat, 18 Mar 2023 15:17:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdc35-0006PU-1h for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 15:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdc34-00062X-Q0 for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdc34-0004mf-Cb for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 15:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Mar 2023 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62260 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62260-submit@debbugs.gnu.org id=B62260.167916697618331 (code B ref 62260); Sat, 18 Mar 2023 19:17:02 +0000 Original-Received: (at 62260) by debbugs.gnu.org; 18 Mar 2023 19:16:16 +0000 Original-Received: from localhost ([127.0.0.1]:49086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdc2J-0004lb-Kb for submit@debbugs.gnu.org; Sat, 18 Mar 2023 15:16:15 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:17223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdc2G-0004lQ-5J for 62260@debbugs.gnu.org; Sat, 18 Mar 2023 15:16:13 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=EBT4MGId JiI95KS2m5CggXkzTl3/ih1xYW2STf6wBlQ=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=8bb0lqh8qVwI1BTGRz4B2RMBPmdwse 95m5rm5WPiG5gvpNKROZc3LBGS/QI/bjjzZLAAU7IA6waZeLF5UGh0BA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=EBT4MGIdJiI95KS2 m5CggXkzTl3/ih1xYW2STf6wBlQ=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=oI7CKeMJlXHhIxQUvOPMMuVNTq5b+SQDxIDLxv 39pn6x0QKeynXUC2D/lhnWCE0bJ7/cEF9aYG879S21jlfCiD6NzoPI0FLpyz9EBuJ75yp6 rScC8G4Pv6H8Y3DYumogJSXM6udkOE6pJQdcEFyHmNKre8iPtzwIXlVlH1VhLiLBE9Izo1 755limPo6fgwAqbKrUbT+hapxSj/gFQCXDUJPhsgp5JIEHOQHh9wAGN6UBjFmHXt2CppF8 4v8faQdN2ajpey5o+hZ/WEBN+7PVJRr17SVjirECnrGETUMQP1Iija3rggiN4n/SkS6PY9 NWqdmpC7HmTC3aB28AM99YPQ== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 563be87c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 18 Mar 2023 20:16:10 +0100 (CET) In-Reply-To: <83bkkpc2x6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Mar 2023 20:47:17 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258210 Archived-At: Eli Zaretskii writes: >> I've tried it but I'm not able to come with such an example. With this >> patch, the auto-save file has always a mode of 0600 even for a file with >> a mode of 0006 not own by me. > > Did you try a different user? I've just tried but with sudo over TRAMP. I had a message about the lock that I stole and then Emacs created another auto-save file with TRAMP naming (this file is also mode 0600). I guess that using TRAMP is cheating here and that I should really be another user using Emacs and trying to open this same file... Then I guess I won't be able to recover from (or write to) this auto-save file. But does this kind of scenarios appear in real life? -- Manuel Giraud