From aa24517b5f810c7d2c913a22c0c9714983af8116 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 28 Jul 2006 07:28:56 +0000 Subject: [PATCH] chmod 0755 DIR and chmod 755 DIR are now equivalent. --- ChangeLog | 10 ++++++++++ doc/ChangeLog | 13 +++++++++++++ lib/ChangeLog | 6 ++++++ 3 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index ea8249f..e6a43de 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 97d4ca1..7ed09fb 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 61ac5fb..f9a59d8 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. -- 2.7.4