Overview
| Artifact ID: | ebe5ee0e0d0df207b285fb0432f21cfe9c8ed2a28b9125ae39252cbc5bdefa75 |
|---|---|
| Ticket: | cd609219f5522f3191a68a84deb51a968dfb8cac
directory creation temporarily changes the umask |
| User & Date: | christian.nassau on 2023-04-05 18:01:59 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/html"
- comment changed to:
In <tt>unix/tclUnixFCmd.c</tt> the following code is used to determine the process's current "umask": <blockquote> <pre> mode = umask(0); umask(mode) </pre> </blockquote> In the (usually miniscule) period between the two calls, the umask is temporarily set to 0 which results in <i>elevated permissions</i> for newly created files at that point. As noted in <a href="https://man7.org/linux/man-pages/man2/umask.2.html">the umask man page</a> for modern Linux systems with a /proc filesystem there is a better way to determine the umask. It might make sense to use this when available.
- foundin changed to: "8.6.12"
- is_private changed to: "0"
- login: "christian.nassau"
- priority changed to: "5 Medium"
- private_contact changed to: "3b279cda57135cd36d2c32c66396637342913651"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "christian.nassau"
- subsystem changed to: "16. Commands A-H"
- title changed to: "directory creation temporarily changes the umask"
- type changed to: "Bug"