From: Paul Eggert Date: Mon, 17 Jul 2006 03:02:45 +0000 (+0000) Subject: chmod, install, and mkdir now leave setgid and setuid bits X-Git-Tag: v6.0~161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=999eeed90f8e614cad8f52657d5fc4b3a611213e;p=thirdparty%2Fcoreutils.git chmod, install, and mkdir now leave setgid and setuid bits of directories alone unless you specify them explicitly. install and mkdir now implement X correctly. install now creates parent directories with mode 755, without changing their owner or group. --- diff --git a/NEWS b/NEWS index bac4ecd2ec..0ec1148f6f 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,14 @@ GNU coreutils NEWS -*- outline -*- basename and dirname now treat // as different from / on platforms where the two are distinct. + chmod, install, and mkdir now leave a directory's set-user-ID and + set-group-ID bits alone unless you explicitly request otherwise. + This is for compatibility with BSD and other systems. For example, + `chmod 755 DIR' and `chmod u=rwx,go=rx DIR' now preserve DIR's + set-user-ID and set-group-ID bits instead of clearing them. If + you want to clear the bits you can mention them explicitly, e.g., + `chmod 0755 DIR' and `chmod a-s,u=rwx,go=rx DIR'. + `cp --link --no-dereference' now works also on systems where the link system call cannot create a hard link to a symbolic link. This change has no effect on systems with a Linux-based kernel. @@ -51,6 +59,14 @@ GNU coreutils NEWS -*- outline -*- used only for internal errors (such as integer overflow, which expr now checks for). + install and mkdir now implement the X permission symbol correctly, + e.g., `mkdir -m a+X dir'; previously the X was ignored. + + install now creates parent directories with mode u=rwx,go=rx (755) + instead of using the mode specified by the -m option; and it does + not change the owner or group of parent directories. This is for + compatibility with BSD and closes some race conditions. + ln now uses different (and we hope clearer) diagnostics when it fails. ln -v now acts more like FreeBSD, so it generates output only when successful and the output is easier to parse.