From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode Date: Sat, 18 Mar 2023 20:47:17 +0200 Message-ID: <83bkkpc2x6.fsf@gnu.org> References: <87v8iynl5c.fsf@ledu-giraud.fr> <83h6uiawvv.fsf@gnu.org> <87r0tlnbtz.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62260@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 19:48:20 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 1pdbbI-0001fo-5O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 19:48:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdbb2-0001nn-AM; Sat, 18 Mar 2023 14:48: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 1pdbb0-0001nc-9O for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 14:48:02 -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 1pdbb0-0001iP-1V for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 14:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdbaz-00043U-QF for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 14:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Mar 2023 18:48:01 +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.167916524215384 (code B ref 62260); Sat, 18 Mar 2023 18:48:01 +0000 Original-Received: (at 62260) by debbugs.gnu.org; 18 Mar 2023 18:47:22 +0000 Original-Received: from localhost ([127.0.0.1]:49072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdbaM-000404-B5 for submit@debbugs.gnu.org; Sat, 18 Mar 2023 14:47:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdbaL-0003zq-5S for 62260@debbugs.gnu.org; Sat, 18 Mar 2023 14:47:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdbaE-0001WA-U5; Sat, 18 Mar 2023 14:47:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rj2rnqZwjSaQxCNi2W1UAXHraQzL0tf6Rtp0AGtExqM=; b=Ak6gcFg3UcXI vklHOigSELV+hv+4QpWFR9rM6syal7bZwLJ2J7Q1QVI+n3K0nWBg20YdIxRptGmJkxxWiXkqMsB9z mQMzecdMbv2kHUKaL27QQGbLcP85OwyVtyM72J248IuWsxWQf0hUvrnWXLvDpMbw2+AmIOySXmK/U uHmCiRGGtfok1uGw6nkYqBiPylXQQOR/TG8geySqQciWtQps3/01HJdS4H8EUh/hN+Nz6oGDep/Yk Qtma++mXGsz68bFMsPh97DHXYvc2bStGvBUnNrnDotI3eiMbVBVx7B/nR20MWczmZbJgT6rEEDHRc LVKbdK2CNVHe9Id/N8fKSg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdbaD-0001Lc-Ue; Sat, 18 Mar 2023 14:47:14 -0400 In-Reply-To: <87r0tlnbtz.fsf@ledu-giraud.fr> (message from Manuel Giraud on Sat, 18 Mar 2023 19:39:20 +0100) 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:258207 Archived-At: > From: Manuel Giraud > Cc: 62260@debbugs.gnu.org > Date: Sat, 18 Mar 2023 19:39:20 +0100 > > Eli Zaretskii writes: > > [...] > > > That could make it impossible to overwrite the auto-save file later. > > So I don't think we should make this change. > > 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?