From: Michael Vrable Date: Fri, 20 Jul 2007 17:17:18 +0000 (-0700) Subject: Really fix the umask problem. X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=commitdiff_plain;h=b883a516a281eeb1f8b13dc24a495334186acc9b Really fix the umask problem. The fix in bf947741ac8f65e74d594a1e14e94d90320b403e didn't entirely work. This should be better. --- diff --git a/store.cc b/store.cc index 8f2c8b3..77ab867 100644 --- a/store.cc +++ b/store.cc @@ -50,7 +50,7 @@ Tarfile::Tarfile(const string &path, const string &segment) : size(0), segment_name(segment) { - real_fd = open(path.c_str(), O_WRONLY | O_CREAT, 0600); + real_fd = open(path.c_str(), O_WRONLY | O_CREAT, 0666); if (real_fd < 0) throw IOException("Error opening output file");