|
From: | Zack Weinberg |
Subject: | Re: [Monotone-devel] Please review quickly [Fwd: [bug #19137] permissions on ~/.monotone/keys/ are too permissive] |
Date: | Sat, 14 Apr 2007 14:43:17 -0700 |
On 4/14/07, Nathaniel Smith <address@hidden> wrote: [...]
...Except that the unix version needs a field in there to temporarily stash the old umask. After a little more looking around, it might be far smarter to use fchmod(2) (inside an appropriate platform.hh wrapper, of course) than to mess around with umask?
I'm going to suggest write_data_userprivate(), with the same interface as write_data(), implemented entirely in platform/, and (on Unix) using 3-argument open() so the file permissions are right from the moment it's created. zw
[Prev in Thread] | Current Thread | [Next in Thread] |