Tcl Source Code

View Ticket
Login
Ticket UUID: 623585
Title: [file mkdir] does not use default acl
Type: Bug Created on: 2002-10-15 15:25:19
Submitter: wffiii Assigned to: jan.nijtmans
Subsystem: 37. File System Severity: Minor
Priority: 5 Medium Last modified: 2026-12-02 14:38:51
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2026-12-02 14:38:51
Version: 8.6.18, 9.0.5, 9.1.0
Description:
When creating a subdirectory in a directory with
default acl's, these defaults are not applied to the
new subdirectory.

One would expect that the default acl's would be
applied to new subdirs however they are created.

We are using tcl versions 8.2 and 8.4
We have tested this with Solaris 8 & 9
We can test other versions of Solaris and tcl as
needed.

I used the script command to log commands and output
while running one test.
I've attached the output from the script command.
If the attachment fails, I'll be happy to
email/ftp/whatever the file.

Test procedure in a nutshell:

1. create a test dir
2. set default acl's
3. create a subdir in the test dir using [file mkdir]
4. look at the acl's for the subdir
User Comments:
wffiii added on 2002-10-15 22:25:19:

File Added - 33124: tcl-acl-test

vincentdarley added on 2002-10-15 23:07:15:
Logged In: YES 
user_id=32170

Luckily, I don't know what an 'acl' is (apart from 
something in your knee), so I'm having to reassign this 
to someone else.

serhiy.storchaka added on 2026-10-17 09:00:11:

Still present on Linux: DoCreateDirectory() applies the umask to the mode itself, and when the parent has a default ACL (so the kernel does not apply the umask) this mode cuts down the inherited permissions. Proposed fix in branch mkdir-no-umask-call, with [cd609219f5]: call mkdir(path, 0777) and let the kernel apply the umask or ACL, as mkdir(1) does. Test unixFCmd-21.1.


jan.nijtmans added on 2026-11-27 15:24:59:

Merged to [14f40fe36f|trunk]


jan.nijtmans added on 2026-12-02 14:38:51:

Now also merged to core-9-0-branch and core-8-6-branch

Many thanks!


Attachments: