---------- Forwarded message ---------- Date: Wed, 8 Mar 2000 20:09:34 -0500 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: [Bug 10077] New - bug in install creating setgid directory http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=10077 --- shadow/10077 Wed Mar 8 20:09:34 2000 +++ shadow/10077.tmp.19400 Wed Mar 8 20:09:34 2000 @@ -0,0 +1,24 @@ +Bug#: 10077 +Product: Red Hat Linux +Version: 6.1 +Platform: All +OS/Version: Linux +Status: NEW +Resolution: +Severity: low +Priority: normal +Component: fileutils +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +URL: +Summary: bug in install creating setgid directory + +[root@bofh /]# install -d /tmp/xxx -g bin -m 6775 +[root@bofh /]# ls -ld /tmp/xxx +drwxrwxr-x 2 root root 1024 Mar 9 02:17 /tmp/xxx +[root@bofh /]# install -d /tmp/xxx -g bin -m 6775 +[root@bofh /]# ls -ld /tmp/xxx +drwsrwsr-x 2 root bin 1024 Mar 9 02:17 /tmp/xxx + +Install is likely first doing the chmod() call and only then the chown() +call instead of the other way around.