1
--- nano-2.0.7.orig/src/files.c
2
+++ nano-2.0.7/src/files.c
7
- fd_source = open(realname, O_RDONLY | O_CREAT);
8
+ fd_source = open(realname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR |
9
+ S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
11
if (fd_source != -1) {
12
f_source = fdopen(fd_source, "rb");
15
FILE *f_source = NULL;
17
- fd_source = open(tempname, O_RDONLY | O_CREAT);
18
+ fd_source = open(tempname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
20
if (fd_source != -1) {
21
f_source = fdopen(fd_source, "rb");