Bug 583588

Summary: mode in mkdir-mode is still affected by umask
Product: [Community] Virtualization Tools Reporter: Yufang Zhang <yuzhang>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
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: 2010-04-19 20:35:34 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 Yufang Zhang 2010-04-19 07:19:42 UTC
Description of problem:
When I create a directory via mkdir-mode, mode of the newly-created dir is still affected by umask.  


Version-Release number of selected component (if applicable):
major: 1
minor: 3
release: 4
extra: 

How reproducible:
Always

Steps to Reproduce:
1.><fs> mkdir-mode /test-dir 0777
mkdir_mode "/test-dir" 511

2.><fs> ll /
ll "/"
total 24
drwxr-xr-x  4 root root  4096 Apr 19 03:24 .
drwxr-xr-x 20 root root     0 Apr 18 22:44 ..
drwx------  2 root root 16384 Apr 19 01:51 lost+found
drwxr-xr-x  2 root root  4096 Apr 19 03:24 test-dir

3. ><fs> umask 022
umask 18
022

  
Actual results:
mode is still affected by umask.

Expected results:
mode in mkdir-mode is not affected by umask.

Additional info:

Comment 1 Richard W.M. Jones 2010-04-19 20:35:34 UTC
We cannot change this because of the ABI guarantee, so I'm
closing this.  See also:

https://bugzilla.redhat.com/show_bug.cgi?id=583554#c1