1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 14:30:42 -08:00
emacs/lisp/net
Paul Eggert 5d4cf1fef8 Add ‘nofollow’ flag to set-file-times
This is a companion to the recent set-file-modes patch.
It adds support for a ‘nofollow’ flag to set-file-times (Bug#39773).
Like the set-file-modes patch, it needs work in the w32 port.
* admin/merge-gnulib (GNULIB_MODULES): Add futimens, utimensat.
Remove utimens.
* doc/lispref/files.texi (Changing Files):
* etc/NEWS: Mention the change.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lisp/files.el (copy-directory):
* lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file):
* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file):
* lisp/tar-mode.el (tar-copy):
* test/lisp/filenotify-tests.el (file-notify-test03-events):
* test/lisp/files-tests.el:
(files-tests-file-name-non-special-set-file-times):
* test/lisp/net/tramp-tests.el (tramp-test22-file-times):
When setting file times, avoid following symbolic links
when the file is not supposed to be a symbolic link.
* lib/futimens.c, lib/utimensat.c, m4/futimens.m4, m4/utimensat.m4:
New files, copied from Gnulib.
* lisp/gnus/gnus-cloud.el (gnus-cloud-replace-file):
When creating a file that is not supposed to exist already,
use the excl flag to check this.
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
Accept an optional FLAG arg that is currently ignored,
and add a FIXME comment for it.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times):
* src/fileio.c (Fset_file_times):
Support an optional FLAG arg.
* src/fileio.c (Fcopy_file): Use futimens instead of set_file_times,
as it’s simpler and is a POSIX API.
* src/sysdep.c (set_file_times): Move from here ...
* src/w32.c (set_file_times): ... to here, and make it static,
since it is now used only in w32.c.  Presumably w32.c should also
add support for futimens and utimensat (the POSIX APIs, which
Emacs now uses) and it can remove fdutimens (the Gnulib API,
which Emacs no longer uses).
2020-03-07 12:15:43 -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-times 2020-03-07 12:15:43 -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 Finish implementation of {set-}file-modes FLAG arg in Tramp 2020-02-25 13:25:57 +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-times 2020-03-07 12:15:43 -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-times 2020-03-07 12:15:43 -08:00
tramp-smb.el Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
tramp-sudoedit.el Add ‘nofollow’ flag to set-file-times 2020-03-07 12:15:43 -08:00
tramp-uu.el Sync with Tramp 2.5.0-pre 2020-01-19 14:11:07 +01:00
tramp.el Finish implementation of {set-}file-modes FLAG arg in Tramp 2020-02-25 13:25:57 +01: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