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 authentification 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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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
  • -unavailable- added by chewi
  • -unavailable- added by mjo
  • -unavailable- added by hashproduct (Voted in favor of this item)
  • -unavailable- added by hashproduct (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 09 Sep 2014 11:19:17 AM UTCchewiCarbon-Copy-=>Added chewi
    Wed 08 Aug 2012 02:47:02 PM UTCmjoCarbon-Copy-=>Added mjo
    Sat 13 Feb 2010 10:00:34 PM UTChashproductCarbon-Copy-=>Added hashproduct

    Back to the top

    Powered by Savane 3.1-cleanup