Thread (9 messages) 9 messages, 4 authors, 2016-04-14

Re: [PATCH v4 0/3] vfs: Define new syscall umask2 [formerly getumask]

flat view

From: Stephen Rothwell <hidden>
Date: 2016-04-13 23:09:42
Also in: lkml

Hi Richard,

On Wed, 13 Apr 2016 20:05:33 +0100 "Richard W.M. Jones" [off-list ref] wrote:
It's not possible to read the process umask without also modifying it,
which is what umask(2) does.  A library cannot read umask safely,
especially if the main program might be multithreaded.
I was wondering if you really need to read the umask, or would just a
"ignore umask" flag to open{,at} do what you want?

-- 
Cheers,
Stephen Rothwell
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help