Magellan Linux

Annotation of /trunk/pilot-link/patches/pilot-link-0.12.4-glibc-open.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 847 - (hide annotations) (download)
Fri Jun 12 17:42:06 2009 UTC (14 years, 11 months ago) by niro
File size: 603 byte(s)
-patches for pilot-link

1 niro 847 diff -urN ./pilot-link-0.12.3.orig/src/pilot-schlep.c ./pilot-link-0.12.3/src/pilot-schlep.c
2     --- ./pilot-link-0.12.3.orig/src/pilot-schlep.c 2006-10-12 16:21:21.000000000 +0200
3     +++ ./pilot-link-0.12.3/src/pilot-schlep.c 2009-02-16 16:09:25.321851803 +0100
4     @@ -21,6 +21,9 @@
5     *
6     */
7    
8     +#include <sys/types.h>
9     +#include <sys/stat.h>
10     +#include <fcntl.h>
11     #include <stdio.h>
12    
13     #include "pi-source.h"
14     @@ -38,7 +38,7 @@
15     fd;
16     pi_buffer_t *buffer;
17    
18     - fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
19     + fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
20     if (fd < 0)
21     return -1;
22