diff options
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index ed84d26f28..ffed414f68 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -2138,7 +2138,7 @@ static bool viewer_load_global_settings(void) | |||
2138 | 2138 | ||
2139 | static bool viewer_save_global_settings(void) | 2139 | static bool viewer_save_global_settings(void) |
2140 | { | 2140 | { |
2141 | int sfd = rb->open(GLOBAL_SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC); | 2141 | int sfd = rb->open(GLOBAL_SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0666); |
2142 | unsigned char buf[GLOBAL_SETTINGS_H_SIZE]; | 2142 | unsigned char buf[GLOBAL_SETTINGS_H_SIZE]; |
2143 | 2143 | ||
2144 | if (sfd < 0) | 2144 | if (sfd < 0) |
@@ -2219,7 +2219,7 @@ static bool viewer_convert_settings_file(void) | |||
2219 | if ((sfd = rb->open(SETTINGS_FILE, O_RDONLY)) < 0) | 2219 | if ((sfd = rb->open(SETTINGS_FILE, O_RDONLY)) < 0) |
2220 | return false; | 2220 | return false; |
2221 | 2221 | ||
2222 | if ((tfd = rb->open(SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC)) < 0) | 2222 | if ((tfd = rb->open(SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0) |
2223 | { | 2223 | { |
2224 | rb->close(sfd); | 2224 | rb->close(sfd); |
2225 | return false; | 2225 | return false; |
@@ -2441,7 +2441,7 @@ static bool viewer_save_settings(void) | |||
2441 | bookmarks[bookmark_count-1].flag = BOOKMARK_LAST; | 2441 | bookmarks[bookmark_count-1].flag = BOOKMARK_LAST; |
2442 | } | 2442 | } |
2443 | 2443 | ||
2444 | tfd = rb->open(SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC); | 2444 | tfd = rb->open(SETTINGS_TMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0666); |
2445 | if (tfd < 0) | 2445 | if (tfd < 0) |
2446 | return false; | 2446 | return false; |
2447 | 2447 | ||