From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#28875: 25.3.50; set-default-file-modes ignores execution bits Date: Tue, 17 Oct 2017 22:11:56 +0900 Message-ID: <87vajd2a1v.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508247378 30570 195.159.176.226 (17 Oct 2017 13:36:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 13:36:18 +0000 (UTC) To: 28875@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 15:36:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4S2D-00056D-Vj for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 15:35:54 +0200 Original-Received: from localhost ([::1]:39330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4S2L-0008Uj-3C for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 09:36:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4RgF-00065V-QD for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:13:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4Rg6-0007jw-En for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:13:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4Rg6-0007jm-CF for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4Rg6-0001SZ-5q for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2017 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15082459535566 (code B ref -1); Tue, 17 Oct 2017 13:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2017 13:12:33 +0000 Original-Received: from localhost ([127.0.0.1]:45091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4Rfd-0001Ri-DE for submit@debbugs.gnu.org; Tue, 17 Oct 2017 09:12:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4Rfb-0001RT-Ne for submit@debbugs.gnu.org; Tue, 17 Oct 2017 09:12:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4RfN-000742-Dh for submit@debbugs.gnu.org; Tue, 17 Oct 2017 09:12:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4RfN-00073v-BI for submit@debbugs.gnu.org; Tue, 17 Oct 2017 09:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4RfH-0005Dw-A6 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:12:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4RfB-0006sq-Nn for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:12:11 -0400 Original-Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:53092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4RfB-0006sK-Gs for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 09:12:05 -0400 Original-Received: by mail-pg0-x22c.google.com with SMTP id a192so1381578pge.9 for ; Tue, 17 Oct 2017 06:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=1hPrIt1uJPmx8ZHcpkVxFZc/Jo/CYm+grlIg7YPclpQ=; b=Oy/kBtQxqZqhnQLnH85dMl9FsI9+773V0GzBVI7qzVb68+WW7AeYtLWnHO/hqylRjf avh4S0vO44LX3Fys6Vd+AexEOC3N3TxpaBFWxsBgtWsWkk0NnO3hjyRloO9++jeuWR/z IEZXEbwcEq1HcHtbrjcXjI/iIeZ4U0acZ4Mp1yoegdzTcWQPPZPIolOpdPK2kUDjNrgG JkTp6927uAQiHwSRRqP9xLWo502LDMEM7xBIhMUCMD3NAFzQlt8cRRfKsdbm3Gj0y8Xv xThZufZxJs/aYngB7nROWwmBCLaLs6ZEZDtjNEjN+XF787LSVO31Vv/sWD0v+kTx5aOD +3qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=1hPrIt1uJPmx8ZHcpkVxFZc/Jo/CYm+grlIg7YPclpQ=; b=LdtF4el23e/M6mUdW70fWJsmBoBrlkAyhZwuSTAlNWm7J4o6+fNGnIJOBaPccYmAoT RrL6xBFDN8xZ36h3zXrJXjfY26gWitOqhAbwij+almUFMCYUePQnjoZYJrdU7DoOJ1EA MJnztzcVGNsENJ1bR5UI1iGUgEdBDsppUvmOLSWJClDg7VEy0LHcUCUvEzXWib1h5nqH hzhob3HP7ntemNINzSMho0F+VG8WgdpJx+lBgUXInx/z0uXmoCxOkzDy2QRfT9KI9zOH M/6SKWckQpkPAsxFrfkluIZqVfpDbp1J4ADif+GcdYHf58gTbWn0yIluldvjdXsQLOpo WOdw== X-Gm-Message-State: AMCzsaVyn92TWN62us/VkZUCc+DglPsLNe3sdFAVsQxNFN0ga/cVvx4b c919vkR0FHlrJY/IsjYjw+dl8g== X-Google-Smtp-Source: AOwi7QAvpXyIbf7sdo386NDypJHRw8LiyoSKGQLxxc9bS5AIupYzOcrnC0cIQ9djI3h+3MYeoRJNdQ== X-Received: by 10.99.166.18 with SMTP id t18mr10913504pge.403.1508245924269; Tue, 17 Oct 2017 06:12:04 -0700 (PDT) Original-Received: from calancha-pc (203.191.218.133.dy.bbexcite.jp. [133.218.191.203]) by smtp.gmail.com with ESMTPSA id o128sm19155993pfg.118.2017.10.17.06.12.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Oct 2017 06:12:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138615 Archived-At: emacs -Q: (let ((foo (make-temp-file "foo")) mode) (with-file-modes #o755 (write-region "" nil foo nil 0)) ;; (set-file-modes foo #o755) (setq mode (nth 8 (file-attributes foo))) (delete-file foo) mode) => "-rw-------" To set foo file permissions to "-rwxr-xr-x" I need uncomment (set-file-modes foo #o755) above. Why? Is for security reasons? In GNU Emacs 25.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-20 built on calancha-pc Repository revision: c3ff6712ad24fcf45874dc0665a8606e9b2208a4