summaryrefslogtreecommitdiff
path: root/apps/plugins/crypt_firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/crypt_firmware.c')
-rw-r--r--apps/plugins/crypt_firmware.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/crypt_firmware.c b/apps/plugins/crypt_firmware.c
index 36689b7e8c..051a3d1bd9 100644
--- a/apps/plugins/crypt_firmware.c
+++ b/apps/plugins/crypt_firmware.c
@@ -246,7 +246,7 @@ enum plugin_status plugin_start(const void* parameter)
246 memcpy(buf + 1, "nn2x", 4); 246 memcpy(buf + 1, "nn2x", 4);
247 247
248 /* 4 - Write to disk */ 248 /* 4 - Write to disk */
249 fd = rb->open(outputfilename,O_WRONLY|O_CREAT|O_TRUNC); 249 fd = rb->open(outputfilename,O_WRONLY|O_CREAT|O_TRUNC, 0666);
250 250
251 if (fd < 0) { 251 if (fd < 0) {
252 rb->splash(HZ*2, "Could not open output file"); 252 rb->splash(HZ*2, "Could not open output file");
@@ -307,7 +307,7 @@ enum plugin_status plugin_start(const void* parameter)
307 memcpy(buf + 1, "nn2g", 4); 307 memcpy(buf + 1, "nn2g", 4);
308 308
309 /* 4 - Write to disk */ 309 /* 4 - Write to disk */
310 fd = rb->open(outputfilename,O_WRONLY|O_CREAT|O_TRUNC); 310 fd = rb->open(outputfilename,O_WRONLY|O_CREAT|O_TRUNC, 0666);
311 311
312 if (fd < 0) { 312 if (fd < 0) {
313 rb->splash(HZ*2, "Could not open output file"); 313 rb->splash(HZ*2, "Could not open output file");