diff options
Diffstat (limited to 'meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch')
-rw-r--r-- | meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch b/meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch new file mode 100644 index 0000000000..738ef9aad1 --- /dev/null +++ b/meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Get patch from: http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/27614 | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c | ||
6 | index 004517b..c0a9771 100644 | ||
7 | --- a/tests/ts_calibrate.c | ||
8 | +++ b/tests/ts_calibrate.c | ||
9 | @@ -21,6 +21,7 @@ | ||
10 | #include <sys/ioctl.h> | ||
11 | #include <sys/mman.h> | ||
12 | #include <sys/time.h> | ||
13 | +#include <sys/stat.h> | ||
14 | #include <linux/kd.h> | ||
15 | #include <linux/vt.h> | ||
16 | #include <linux/fb.h> | ||
17 | @@ -224,9 +225,11 @@ int main() | ||
18 | for (i = 0; i < 7; i++) printf("%d ", cal.a [i]); | ||
19 | printf("\n"); | ||
20 | if ((calfile = getenv("TSLIB_CALIBFILE")) != NULL) { | ||
21 | - cal_fd = open (calfile, O_CREAT | O_RDWR); | ||
22 | + cal_fd = open (calfile, O_CREAT | O_RDWR, | ||
23 | + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); | ||
24 | } else { | ||
25 | - cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR); | ||
26 | + cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR, | ||
27 | + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); | ||
28 | } | ||
29 | sprintf (cal_buffer,"%d %d %d %d %d %d %d", | ||
30 | cal.a[1], cal.a[2], cal.a[0], | ||