fix a bug in the configuration writer

creates new configuration files readable and writable
This commit is contained in:
mjentsch 2014-08-23 02:53:57 +02:00
parent 7ee334ec37
commit dddbe451c1

View file

@ -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);
}