Tcl Source Code

View Ticket
Login
2026-10-17
09:00 • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: 9ed74cfc29 user: serhiy.storchaka
09:00 • Ticket [cd609219f5] directory creation temporarily changes the umask status ... artifact: e5372f042e user: serhiy.storchaka
08:58
Fix [cd609219f5] and [623585ffff]: [file mkdir] read the umask with umask(0) + umask(mode), which th... leaf check-in: 5d7e74108f user: serhiy.storchaka tags: mkdir-no-umask-call
2002-10-15
23:07 • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: 5bc10e1568 user: vincentdarley
22:39 • Ticket [623585ffff]: 2 changes artifact: 26148b1925 user: dkf
22:25 • Add attachment tcl-acl-test to ticket [623585ffff] artifact: 111ede1da5 user: wffiii
22:25 • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: b86336f64c user: wffiii
15:25 • New ticket [623585ffff]. artifact: c09b057225 user: wffiii

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: hobbs
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2026-10-17 09:00:11
Status: Open Closed by:
Resolution: None Closed on:
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.


Attachments: