1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/gnus
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
..
.dir-locals.el
canlock.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.1 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.2 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ChangeLog.3 Update copyright year to 2020 2020-01-01 00:59:52 +00:00
deuglify.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
gmm-utils.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-agent.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-art.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-async.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bcklg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-bookmark.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-cache.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cite.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-cloud.el Move “Fix some broken conditional forms” to master 2020-01-05 11:50:31 -08:00
gnus-cus.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-delay.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-demon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-diary.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-dired.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-draft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-dup.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-eform.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-fun.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
gnus-gravatar.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-group.el * lisp/gnus/gnus-start.el (gnus-group-change-level): Simplify 2020-01-04 18:07:23 -05:00
gnus-html.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-icalendar.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-int.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-kill.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-logic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mh.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-ml.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-mlspl.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-msg.el Ensure that gnus-summary-attach-article finds the right articles 2020-01-18 13:55:18 -08:00
gnus-notifications.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-picon.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-range.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-registry.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-rfc1843.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-salt.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-score.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-sieve.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-spec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-srvr.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
gnus-start.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
gnus-sum.el * lisp/gnus/gnus-sum.el (gnus-read-move-group-name): Use user-error 2020-02-04 22:32:39 -05:00
gnus-topic.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-undo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-util.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
gnus-uu.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
gnus-vm.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus-win.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
gnus.el fix bug#39344 2020-01-29 11:17:50 -05:00
gssapi.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
legacy-gnus-agent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mail-source.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
message.el Remove subsumed repetitions in regexps 2020-02-20 16:05:18 +01:00
mm-archive.el Fix some file-modes races 2020-02-19 13:48:27 -08:00
mm-bodies.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-decode.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
mm-encode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-extern.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-partial.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-url.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mm-util.el Correct "different than" to "different from" where appropriate 2020-02-09 14:33:14 +00:00
mm-uu.el Add and remove backslashes in regexps 2020-02-20 16:03:30 +01:00
mm-view.el Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190) 2020-02-06 00:38:53 +02:00
mml-sec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
mml-smime.el Move “Fix some broken conditional forms” to master 2020-01-05 11:50:31 -08:00
mml.el Fix conversion of text/html->multipart/related 2020-02-19 14:51:43 +01:00
mml1991.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
mml2015.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
nnagent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnbabyl.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nndiary.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nndir.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nndoc.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nndraft.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nneething.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnfolder.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nngateway.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnheader.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnimap.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnir.el When searching a topic in Gnus, search all topic's groups 2020-02-14 11:56:58 -08:00
nnmail.el Add 'nofollow' flag to set-file-modes etc. 2020-02-23 16:45:50 -08:00
nnmaildir.el * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a group 2020-02-14 11:05:57 -05:00
nnmairix.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnmbox.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnmh.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnml.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnnil.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
nnoo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnregistry.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nnrss.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnspool.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
nntp.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnvirtual.el Make sure that all gnus buffers are killed on exit 2020-01-28 09:47:52 -05:00
nnweb.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
score-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smiley.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
smime.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
spam-report.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam-stat.el prune the overly cavalier "kill all gnus buffers exit" 2020-01-30 11:28:30 -05:00
spam-wash.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
spam.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00