From: Paul Eggert Date: Fri, 28 Jul 2006 07:28:56 +0000 (+0000) Subject: chmod 0755 DIR and chmod 755 DIR are now equivalent. X-Git-Tag: v6.0~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa24517b5f810c7d2c913a22c0c9714983af8116;p=thirdparty%2Fcoreutils.git chmod 0755 DIR and chmod 755 DIR are now equivalent. --- diff --git a/ChangeLog b/ChangeLog index ea8249f71e..e6a43dec1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-07-28 Paul Eggert + + * NEWS: chmod now preserves setuid and setgid bits on directories + if you use a numeric mode with them clear, e.g., "chmod 755 DIR". + Fix test case problems if working directory is setgid, + reported by Bob Proulx. + * tests/cp/fail-perm: Use symbolic mode so that we clear + setgid bit more reliably on directories. + * tests/mkdir/special-1 (set_mode_string): Likewise. + 2006-07-27 Jim Meyering * src/chgrp.c (usage): Use correct grammar in description of the diff --git a/doc/ChangeLog b/doc/ChangeLog index 97d4ca1cc6..7ed09fb5db 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,16 @@ +2006-07-28 Paul Eggert + + * coreutils.texi (install invocation, mkdir invocation): + Add cross-references to Directory Setuid and Setgid. + (install-invocation): The default mode is no longer equivalent to 755. + * perm.texi (Changing Special Mode Bits): Clarify u+s versus + a+s versus +s, and likewise for g+s. + (Numeric Modes): Bring back example of 0055 == 55. 4755 no + longer clears setgid bit on directories. + (Directory Setuid and Setgid): Numeric modes now affect setuid + and setgid on directories only if they set these bits. This + is so that leading 0 has no effect on numeric modes. + 2006-07-26 Jim Meyering * coreutils.texi (What information is listed): Mention that missing diff --git a/lib/ChangeLog b/lib/ChangeLog index 61ac5fb3ce..f9a59d8ce9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2006-07-28 Paul Eggert + + * modechange.c (mode_compile): Numeric modes now affect setuid and + setgid on directories only if they set these bits. + * modechange.h: Remove obsolete comment about masks. + 2006-07-22 Paul Eggert * close-stream.c, close-stream.h: New files.