Bug 10077

Summary: bug in install creating setgid directory
Product: [Retired] Red Hat Linux Reporter: Paul Wouters <paul>
Component: fileutilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-09 01:15:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Wouters 2000-03-09 01:09:33 UTC
[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.

Comment 1 Bernhard Rosenkraenzer 2000-03-09 01:15:59 UTC
Fixed.