Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c4118dcb7c186e7a3c91bcd5183b9c4f > files > 2

nettee-0.1.9.1-3.fc12.src.rpm

diff -up nettee-0.1.9/nettee.c.open nettee-0.1.9/nettee.c
--- nettee-0.1.9/nettee.c.open	2008-10-31 19:11:42.000000000 +0100
+++ nettee-0.1.9/nettee.c	2008-11-07 17:33:00.858951352 +0100
@@ -865,7 +865,7 @@ static int open_outfile(int try_hard)
     return 0;  /* there may be no local output, subsequent commands must handle this*/
   }
   else{
-    output = open(name, O_CREAT | O_WRONLY | O_TRUNC | FLOPT);
+    output = open(name, O_CREAT | O_WRONLY | O_TRUNC | FLOPT, S_IRUSR | S_IWUSR);
   }
   if(output == -1) {
     if(try_hard == 1) {