summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorStephen Gildea <stepheng+emacs@gildea.com>2019-12-20 09:15:13 -0800
committerStephen Gildea <stepheng+emacs@gildea.com>2019-12-21 10:51:10 -0800
commit678a71ea2d044f19f75e3f45c930c5e3b707e3dc (patch)
treee62c41f8970ff093717954d300f7176b8be2058c /doc/emacs
parent59ce7609cb383893ac55921589051993c388c6cc (diff)
downloademacs-678a71ea2d044f19f75e3f45c930c5e3b707e3dc.tar.gz
backup-by-copying-when-privileged-mismatch applies to file gid, too.
* lisp/files.el (backup-by-copying-when-privileged-mismatch): In addition to checking the file uid, a second test is added: if the file gid is not greater than backup-by-copying-when-privileged-mismatch, backup-by-copying-when-mismatch will also be forced on. * doc/emacs/files.texi, doc/lispref/backups.texi: Updated documentation. Also fixed a typo in the Emacs reference manual, changing "higher" to "no greater" so that the limit is no longer documented reversed.
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/files.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 7221edcc1b2..f5dd408cc9f 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -690,8 +690,9 @@ non-@code{nil} (the default is @code{t}), and renaming would change
the file's owner or group, use copying.
If you change @code{backup-by-copying-when-mismatch} to @code{nil},
-Emacs checks the numeric user-id of the file's owner. If this is
-higher than @code{backup-by-copying-when-privileged-mismatch}, then it
+Emacs checks the numeric user-id of the file's owner and the numeric
+group-id of the file's group. If either is
+no greater than @code{backup-by-copying-when-privileged-mismatch}, then it
behaves as though @code{backup-by-copying-when-mismatch} is
non-@code{nil} anyway.