Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > afefcd67fb8f69e0714a75d9f6ab40ef > files > 2

nano-2.0.9-1mdv2009.0.src.rpm

--- src/files.c	2007-11-17 15:34:38.000000000 -0500
+++ src/files.c.oden	2008-07-09 08:57:15.000000000 -0400
@@ -1564,7 +1564,7 @@ bool write_file(const char *name, FILE *
 	}
 
 	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");
@@ -1683,7 +1683,7 @@ bool write_file(const char *name, FILE *
 	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");