Subject: bug#43162: closed (Re: bug#43162: chgrp clears setgid even when group is not changed)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 02 Sep 2020 02:10:02 +0000

Your bug report

#43162: chgrp clears setgid even when group is not changed

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
43162: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43162
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#43162: chgrp clears setgid even when group is not changed
From: Paul Eggert <[email-masked]>
To: Karl Berry <[email-masked]>
Cc: [email-masked]
Date: Tue, 1 Sep 2020 19:09:23 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On 9/1/20 3:30 PM, Karl Berry wrote:
> I was on centos7.
> 
>      (I don't observe your problem on my Fedora 31 box, for example).
> 
> Maybe there is hope for a future centos, then.

Maybe. Or it could be a filesystem or mounting issue. My filesystem was ext4 
mounted rw,relatime,seclabel, for what it's worth.

Anyway, closing the bug report.

Subject: chgrp clears setgid even when group is not changed
From: Karl Berry <[email-masked]>
To: [email-masked]
Date: Tue, 1 Sep 2020 15:25:45 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Is it necessary for chgrp to clear setgid on directories even when the
group is not actually changed? In my life at least, it is rather
annoying. --thanks, karl.

$ mkdir foo
$ chmod g+s foo
$ ls -ld foo
drwxrwsr-x 2 karl root 6 Sep  1 10:36 foo/
$ chgrp root foo
$ ls -ld foo
drwxrwxr-x 2 karl root 6 Sep  1 10:36 foo/