linamh/x11-libs/tslib/files/tslib-1.0-test-1.patch

23 lines
872 B
Diff
Raw Normal View History

Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-03-27
Initial Package Version: 1.0
Origin: me
Upstream Status: unknown
Description: fix __open_missing_mode
diff -Naur tslib-1.0.orig/tests/ts_calibrate.c tslib-1.0/tests/ts_calibrate.c
--- tslib-1.0.orig/tests/ts_calibrate.c 2009-03-27 22:02:45.000000000 +0000
+++ tslib-1.0/tests/ts_calibrate.c 2009-03-27 22:12:41.926314128 +0000
@@ -220,9 +220,9 @@
for (i = 0; i < 7; i++) printf("%d ", cal.a [i]);
printf("\n");
if ((calfile = getenv("TSLIB_CALIBFILE")) != NULL) {
- cal_fd = open (calfile, O_CREAT | O_RDWR);
+ cal_fd = open (calfile, O_CREAT | O_RDWR, 0644);
} else {
- cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR);
+ cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR, 0644);
}
sprintf (cal_buffer,"%d %d %d %d %d %d %d",
cal.a[1], cal.a[2], cal.a[0],