SOURCES: dosemu-creat_mode.patch (NEW) - fix for: /usr/include/bits/fcnt...

sls sls at pld-linux.org
Fri Oct 10 17:31:57 CEST 2008


Author: sls                          Date: Fri Oct 10 15:31:57 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for: 
  /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
- WARNING: I hope mode_t flags are OK

---- Files affected:
SOURCES:
   dosemu-creat_mode.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dosemu-creat_mode.patch
diff -u /dev/null SOURCES/dosemu-creat_mode.patch:1.1
--- /dev/null	Fri Oct 10 17:31:58 2008
+++ SOURCES/dosemu-creat_mode.patch	Fri Oct 10 17:31:51 2008
@@ -0,0 +1,11 @@
+--- dosemu-1.4.0/src/tools/periph/dexeconfig.c.orig	2008-10-10 16:01:05.802663404 +0200
++++ dosemu-1.4.0/src/tools/periph/dexeconfig.c	2008-10-10 16:15:55.241534296 +0200
+@@ -238,7 +238,7 @@
+     exit(1);
+   }
+   close(fd);
+-  fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC);
++  fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
+   if (fc < 0) {
+     perror("cannot open config file");
+     exit(1);
================================================================


More information about the pld-cvs-commit mailing list