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 22:21:03 +0200 Message-ID: <837cvdbykw.fsf@gnu.org> References: <87v8iynl5c.fsf@ledu-giraud.fr> <83h6uiawvv.fsf@gnu.org> <87r0tlnbtz.fsf@ledu-giraud.fr> <83bkkpc2x6.fsf@gnu.org> <83a609c2q7.fsf@gnu.org> <87ilexn9tc.fsf@ledu-giraud.fr> <838rftbzj3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8980"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62260@debbugs.gnu.org To: manuel@ledu-giraud.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 21:22:27 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 1pdd4N-00026I-3x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 21:22:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdd3y-0006yF-SI; Sat, 18 Mar 2023 16:22:02 -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 1pdd3y-0006y7-8R for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 16:22: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 1pdd3x-00028Y-Se for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 16:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdd3x-0006Xx-Mw for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 16:22: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 20:22: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.167917087025070 (code B ref 62260); Sat, 18 Mar 2023 20:22:01 +0000 Original-Received: (at 62260) by debbugs.gnu.org; 18 Mar 2023 20:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:49104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdd37-0006WG-PV for submit@debbugs.gnu.org; Sat, 18 Mar 2023 16:21:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdd35-0006W1-Kx for 62260@debbugs.gnu.org; Sat, 18 Mar 2023 16:21:08 -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 1pdd2z-00022k-MT; Sat, 18 Mar 2023 16:21:01 -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=2fMz31M8uOA6hlf0m7RsEflkCSZiDf4z/9JiYyHwJRA=; b=ehtQOpsY2ySl GMxHjnajxuyMolW4FQQt37PfDQx3Up9mXTwl1B22vyGhr1//Tb5LXD0uURJY+vSuY6j4ktlnRGTlH RCeES8d7GCaXySTuDJKHVmmJiKocCXUlV/27b/oJFwfrJQOocCmvLRDIkmV5HxvnSAi8ryXsT7AmR gjxESb749XAok/dgf7ZAo2RCLLK7fUxEay3ppt7Qm+qh0+E40Ixge8a/TYH27HTJQa5yeQLhtMs7b Trmk2Yv/ba3RpnF6IBPJJE4i0UEW/p4ZURv6tx3pKCPZN1451A4ZyfHkRjGIxQepWRA9fo8P4Rl16 JKZvDu+hpRq/kVLaERjgWQ==; 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 1pdd2y-0004Lr-Vv; Sat, 18 Mar 2023 16:21:01 -0400 In-Reply-To: <838rftbzj3.fsf@gnu.org> (message from Eli Zaretskii on Sat, 18 Mar 2023 22:00:32 +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:258213 Archived-At: > Cc: 62260@debbugs.gnu.org > Date: Sat, 18 Mar 2023 22:00:32 +0200 > From: Eli Zaretskii > > > With this patch, the /tmp directory now contains an auto-save file with > > mode 0600. > > When a buffer visits a file, its auto-save file should have the same > mode bits as the file itself (modulo your umask). I see no need to > affect that part in any case. If the file itself is not private, why > should its auto-save file be private? Also, there's > auto-save-visited-mode. More generally: what problems are you trying to solve here? If this code causes some problems, please describe them, and let's see whether and how we should fix them. This code is in its present shape for the last 25 years at least, and in all that time I don't think we ever had any complaints about the mode bits of the auto-save files. So if there's no real-life problem here, I see no reason to change code that is stable for so long.