summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-05-13 15:56:34 +0100
committerPádraig Brady <P@draigBrady.com>2014-05-16 22:01:31 +0100
commit99960eeab9bf7fb479ab9f5342fc12a1fae629e6 (patch)
tree451f8fc6ba8c3ce9214d14eb24bd848c86b15597 /NEWS
parentffd1a1d8dee921e20db515e7d4b3c3e47006c8b4 (diff)
downloadcoreutils-99960eeab9bf7fb479ab9f5342fc12a1fae629e6.tar.xz
chroot: don't chdir() if not changing root
This allows chroot to be used as a light weight tool to change user identification for a command, while not changing the current working directory. It also makes `chroot / true` consistently succeed on all platforms for non root users. * src/chroot.c (main): If the same root is specified. i.e. '/' then don't change the current working directory, and avoid the overhead of the other redundant calls. * tests/misc/chroot-fail.sh: Remove failure guard previously needed on some systems. Also add an explicit case to ensure we don't change directory. * NEWS: Mention the change in behavior.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c204b680d..93e3a0980 100644
--- a/NEWS
+++ b/NEWS
@@ -82,6 +82,9 @@ GNU coreutils NEWS -*- outline -*-
** Changes in behavior
+ chroot with an argument of "/" no longer implicitly changes the current
+ directory to "/", allowing changing only user credentials for a command.
+
ls with none of LS_COLORS or COLORTERM environment variables set,
will now honor an empty or unknown TERM environment variable,
and not output colors even with --colors=always.