]> git.pld-linux.org Git - packages/dosemu.git/commitdiff
- fix for:
authorSzymon Siwek <sls@pld-linux.org>
Fri, 10 Oct 2008 15:31:51 +0000 (15:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  /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

Changed files:
    dosemu-creat_mode.patch -> 1.1

dosemu-creat_mode.patch [new file with mode: 0644]

diff --git a/dosemu-creat_mode.patch b/dosemu-creat_mode.patch
new file mode 100644 (file)
index 0000000..86d8a5f
--- /dev/null
@@ -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);
This page took 0.100007 seconds and 4 git commands to generate.