[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 0.17: open-with-O_CREAT needs third argument
From: |
John Cowan |
Subject: |
Re: 0.17: open-with-O_CREAT needs third argument |
Date: |
Wed, 7 Nov 2007 13:01:46 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Chuck Swiger scripsit:
> If you're creating a file on behalf of the user, I would expect it to
> receive permissions which reflect whatever umask(2) has been set to.
The current umask is *automatically* applied to the permissions specified
in file-creation system calls. That's the whole point of it: so that
the program can be written to specify maximal permissions (as Unix programs
historically have been) and the user can then reduce the permissions by
setting the umask.
--
John Cowan address@hidden http://ccil.org/~cowan
Promises become binding when there is a meeting of the minds and consideration
is exchanged. So it was at King's Bench in common law England; so it was
under the common law in the American colonies; so it was through more than
two centuries of jurisprudence in this country; and so it is today.
--Specht v. Netscape