SHA256
1
0
forked from pool/nano
OBS User unknown
2007-12-06 16:07:31 +00:00
committed by Git OBS Bridge
parent a3ff377ad6
commit 3a1f3f3052
3 changed files with 37 additions and 4 deletions

20
nano-2.0.6.patch Normal file
View File

@@ -0,0 +1,20 @@
--- src/files.c
+++ src/files.c
@@ -1518,7 +1518,7 @@
}
if (f_open == NULL) {
- fd_source = open(realname, O_RDONLY | O_CREAT);
+ fd_source = open(realname, O_RDONLY);
if (fd_source != -1) {
f_source = fdopen(fd_source, "rb");
@@ -1637,7 +1637,7 @@
int fd_source;
FILE *f_source = NULL;
- fd_source = open(tempname, O_RDONLY | O_CREAT);
+ fd_source = open(tempname, O_RDONLY);
if (fd_source != -1) {
f_source = fdopen(fd_source, "rb");