From dddbe451c1da0f77a75156ee154136ac7584f242 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Sat, 23 Aug 2014 02:53:57 +0200 Subject: [PATCH] fix a bug in the configuration writer creates new configuration files readable and writable --- telegram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.c b/telegram.c index db40105..f23b230 100755 --- a/telegram.c +++ b/telegram.c @@ -195,7 +195,7 @@ void assure_file_exists(const char *dir, const char *file) { g_mkdir_with_parents(dir, 0700); char *f = g_strdup_printf("%s/%s", dir, file); - close(open(f, O_RDWR | O_CREAT, S_IRUSR, S_IWUSR)); + close(open(f, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)); assert_file_usable(f); g_free(f); }