bugGNU Core Utilities - Bugs: bug #28891, Fix all code that sets the umask...


You are not allowed to post comments on this tracker with your current authentication level.

bug #28891: Fix all code that sets the umask to zero

Submitted by:  Matt McCutchen <hashproduct>
Submitted on:  Sat 13 Feb 2010 09:51:29 PM UTC  
Votes:  20  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Sat 13 Feb 2010 09:51:29 PM UTC, original submission:

Several pieces of code in coreutils set the umask to zero in order to create files with specific permissions:

Code that takes this approach generally doesn't handle default ACLs properly. Here's an example with mkdir(1):

The code should be fixed to call chmod(2) on the created files, and then the umask is no longer relevant.

Matt McCutchen <hashproduct>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chewi
  • -email is unavailable- added by mjo
  • -email is unavailable- added by hashproduct (Voted in favor of this item)
  • -email is unavailable- added by hashproduct (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 20 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-09 chewi Carbon-Copy- => Added chewi
    2012-08-08 mjo Carbon-Copy- => Added mjo
    2010-02-13 hashproduct Carbon-Copy- => Added hashproduct

    Back to the top

    Powered by Savane 3.4