Ticket #46840: io_compile.patch
File io_compile.patch, 621 bytes (added by RJVB (René Bertin), 10 years ago) |
---|
-
src/io.c
old new 1903 1903 } 1904 1904 1905 1905 strcpy(str,""); 1906 fgets(str,MAXLINE,fpin); 1906 if (fgets(str,MAXLINE,fpin) == NULL) 1907 g_error("fgets error\n"); 1907 1908 1908 1909 if (pclose(fpin) == -1) { 1909 1910 g_error("pclose error\n"); … … 4720 4721 dolog(3, "Saving extended output to %s\n", fname); 4721 4722 4722 4723 /* write to file */ 4723 fd = open(fname, O_WRONLY | O_CREAT);4724 fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); 4724 4725 if (fd < 0) { 4725 4726 g_warning("Can't open file %s for writing\n",fname); 4726 4727 return 1;