Package: coreutils Version: 7.3-1 using chmod (0)0775 isn't clearing setuid/setgid. I'm sure it used to, same on lenny and unstable boxes.
$ mkdir foo; ls -l drwxr-xr-x 2 root root 4096 2009-05-29 09:14 foo $ chmod 2775 foo; ls -l drwxrwsr-x 2 root root 4096 2009-05-29 09:14 foo $ chmod 0775 foo; ls -l drwxrwsr-x 2 root root 4096 2009-05-29 09:14 foo $ chmod 00775 foo; ls -l drwxrwsr-x 2 root root 4096 2009-05-29 09:14 foo $ strace chmod 0775 foo; ls -l .... fchmodat(AT_FDCWD, "foo", 02775) = 0 .... drwxrwsr-x 2 root root 4096 2009-05-29 09:14 foo Adrian -- Email: [email protected] -*- GPG key available on public key servers Debian GNU/Linux - the maintainable distribution -*- www.debian.org -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

