creates the dststatus file with 600 as permissions

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23113 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-12-11 20:20:45 +00:00
parent e9edc48ddf
commit 59b17b6be1
+1 -1
View File
@@ -103,7 +103,7 @@ main(int argc, char **argv)
strcat(path, "/time_dststatus"); strcat(path, "/time_dststatus");
bool newFile = false; bool newFile = false;
bool dst = false; bool dst = false;
int fd = open(path, O_RDWR | O_EXCL | O_CREAT); int fd = open(path, O_RDWR | O_EXCL | O_CREAT, S_IRUSR | S_IWUSR);
if (fd < 0) { if (fd < 0) {
newFile = false; newFile = false;
fd = open(path, O_RDWR); fd = open(path, O_RDWR);