unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28875: 25.3.50; set-default-file-modes ignores execution bits
@ 2017-10-17 13:11 Tino Calancha
  2017-10-17 14:03 ` Andreas Schwab
  0 siblings, 1 reply; 10+ messages in thread
From: Tino Calancha @ 2017-10-17 13:11 UTC (permalink / raw)
  To: 28875


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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-07-10  6:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 13:11 bug#28875: 25.3.50; set-default-file-modes ignores execution bits Tino Calancha
2017-10-17 14:03 ` Andreas Schwab
2017-10-17 14:25   ` Tino Calancha
2017-10-20  3:10     ` Tino Calancha
2017-10-20  7:15       ` Eli Zaretskii
     [not found]         ` <ef2bbaf3-7c6b-56a8-32ac-c5366d7431e7@gmail.com>
2017-10-20  8:42           ` Eli Zaretskii
     [not found]             ` <0a5e94fd-6c38-b022-5219-449f5e90c261@gmail.com>
     [not found]               ` <83bmks7l1p.fsf@gnu.org>
2017-10-27 14:02                 ` Tino Calancha
2017-10-27 17:22                   ` Eli Zaretskii
2018-07-10  6:45                     ` Tino Calancha
2017-10-20  7:53       ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).