From 11f43a475f2004e98eb5e34f69fcfc51fc2671eb Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 22 Dec 2012 09:15:44 -0800 Subject: [PATCH] core: Create storage directories without group and world permissions --- src/textfile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/textfile.c b/src/textfile.c index 9cb6bf26a..ed6bfba48 100644 --- a/src/textfile.c +++ b/src/textfile.c @@ -77,9 +77,7 @@ int create_file(const char *filename, const mode_t mode) { int fd; - umask(S_IWGRP | S_IWOTH); - create_dirs(filename, S_IRUSR | S_IWUSR | S_IXUSR | - S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); + create_dirs(filename, S_IRUSR | S_IWUSR | S_IXUSR); fd = open(filename, O_RDWR | O_CREAT, mode); if (fd < 0) -- 2.47.3