[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] Ticket 942 - make install uses user's umask
From: |
DG Ward |
Subject: |
[Chicken-hackers] Ticket 942 - make install uses user's umask |
Date: |
Fri, 22 Nov 2013 12:11:22 +1300 |
User-agent: |
Roundcube Webmail/0.9.5 |
Hey guys,
I've been working away on fixing the problem described here:
http://bugs.call-cc.org/ticket/942
The problem only manifests itself when you install via. sudo.
The reason that the issue arose is that no owner was specified for the
files being installed. This meant that the owner defaulted to the person
who ran the command.
That itself may not seem like it should screw up the permissions as they
were directly specified (e.g. -m755). The gotcha? Sudo doesn't let
issued programs set a umask that's more permissive than that of the
invoking user.
Explicitly stating the owner as root lets us set the mode to whatever we
please :)
I've attached a quick patch that fixes it on my side :)
~elderK
defaults.make.diff
Description: Text Data
- [Chicken-hackers] Ticket 942 - make install uses user's umask,
DG Ward <=
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, Christian Kellermann, 2013/11/22
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, Christian Kellermann, 2013/11/22
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, DG Ward, 2013/11/22
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, Peter Bex, 2013/11/22
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, DG Ward, 2013/11/22
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, John J Foerch, 2013/11/24
- Re: [Chicken-hackers] Ticket 942 - make install uses user's umask, Peter Bex, 2013/11/25