Really fix the umask problem.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 20 Jul 2007 17:17:18 +0000 (10:17 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Fri, 20 Jul 2007 17:17:18 +0000 (10:17 -0700)
The fix in bf947741ac8f65e74d594a1e14e94d90320b403e didn't entirely work.
This should be better.

store.cc

index 8f2c8b3..77ab867 100644 (file)
--- 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");