1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/net
Paul Eggert 9d626dffc6 Add 'nofollow' flag to set-file-modes etc.
This avoids some race conditions (Bug#39683).  E.g., if some other
program changes a file to a symlink between the time Emacs creates
the file and the time it changes the file’s permissions, using the
new flag prevents Emacs from inadvertently changing the
permissions of a victim in some completely unrelated directory.
* admin/merge-gnulib (GNULIB_MODULES): Add fchmodat.
* doc/lispref/files.texi (Testing Accessibility, Changing Files):
* doc/lispref/os.texi (File Notifications):
* etc/NEWS:
Adjust documentation accordingly.
* lib/chmodat.c, lib/fchmodat.c, lib/lchmod.c, m4/fchmodat.m4:
* m4/lchmod.m4: New files, copied from Gnulib.
* lib/gnulib.mk.in: Regenerate.
* lisp/dired-aux.el (dired-do-chmod):
* lisp/doc-view.el (doc-view-make-safe-dir):
* lisp/emacs-lisp/autoload.el (autoload--save-buffer):
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
* lisp/eshell/em-pred.el (eshell-pred-file-mode):
* lisp/files.el (backup-buffer-copy, copy-directory):
* lisp/gnus/mail-source.el (mail-source-movemail):
* lisp/gnus/mm-decode.el (mm-display-external):
* lisp/gnus/nnmail.el (nnmail-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-write-region):
* lisp/net/tramp.el (tramp-handle-write-region)
(tramp-make-tramp-temp-file):
* lisp/server.el (server-ensure-safe-dir):
* lisp/url/url-util.el (url-make-private-file):
When getting or setting file modes, avoid following symbolic links
when the file is not supposed to be a symbolic link.
* lisp/doc-view.el (doc-view-make-safe-dir):
Omit no-longer-needed separate symlink test.
* lisp/gnus/gnus-util.el (gnus-set-file-modes):
* lisp/net/tramp.el (tramp-handle-file-modes):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes):
* src/fileio.c (symlink_nofollow_flag): New function.
(Ffile_modes, Fset_file_modes):
Support an optional FLAG arg.  All C callers changed.
* lisp/net/ange-ftp.el (ange-ftp-set-file-modes):
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes):
* lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
Accept an optional FLAG arg that is currently ignored,
and add a FIXME comment for it.
* m4/gnulib-comp.m4: Regenerate.
2020-02-23 16:45:50 -08:00
..
ange-ftp.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
browse-url.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
dbus.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dig.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dns.el dns-query now represents SOA integers as integers (Bug#38937) 2020-01-15 17:55:15 -08:00
eudc-bob.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudc-export.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudc-hotlist.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudc-vars.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudcb-bbdb.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudcb-ldap.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eudcb-mab.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
eww.el Fix <button>...</button> submit button rendering in eww 2020-02-20 14:44:16 +01:00
gnutls.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
goto-addr.el Example goto-addr hook: MH-E already uses goto-address 2020-02-01 09:06:34 -08:00
hmac-def.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
hmac-md5.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
imap.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ldap.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
mailcap.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mairix.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
net-utils.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
netrc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
network-stream.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
newst-backend.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
newst-plainview.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
newst-reader.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
newst-ticker.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
newst-treeview.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
newsticker.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nsm.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
ntlm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
pop3.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
puny.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
quickurl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rcirc.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
rfc2104.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rlogin.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sasl-cram.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sasl-digest.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sasl-ntlm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sasl-scram-rfc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sasl-scram-sha256.el Add SASL SCRAM-SHA-256 support. 2020-01-16 08:54:04 +01:00
sasl.el Add SASL SCRAM-SHA-256 support. 2020-01-16 08:54:04 +01:00
secrets.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shr-color.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shr.el shr comment typo fix 2020-02-20 15:15:07 +01:00
sieve-manage.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sieve-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
sieve.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
snmp-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
soap-client.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
soap-inspect.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
socks.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
telnet.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tramp-adb.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
tramp-archive.el Sync with Tramp 2.5.0-pre 2020-01-19 14:11:07 +01:00
tramp-cache.el Simplify Tramp caching 2020-02-13 16:34:41 +01:00
tramp-cmds.el ; Sync with Tramp repository 2020-01-06 12:11:53 +01:00
tramp-compat.el Remove compatibility hack in Tramp 2020-01-31 10:29:02 +01:00
tramp-ftp.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tramp-gvfs.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
tramp-integration.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tramp-rclone.el Minor code cleanup in Tramp 2020-01-24 14:41:44 +01:00
tramp-sh.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
tramp-smb.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
tramp-sudoedit.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
tramp-uu.el Sync with Tramp 2.5.0-pre 2020-01-19 14:11:07 +01:00
tramp.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
trampver.el Sync with Tramp 2.5.0-pre 2020-01-19 14:11:07 +01:00
webjump.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
zeroconf.el Replace add-to-list to lexical variable with push (bug#39373) 2020-02-01 22:27:23 +01:00