external/tslib
Revisión | 596c50121dcb5ede22011ce1f327905508047067 (tree) |
---|---|
Tiempo | 2013-08-14 00:43:08 |
Autor | Masaki Muranaka <monaka@mona...> |
Commiter | Chih-Wei Huang |
ts_calibrate : Truncate pointercal file if it already exists.
This fix is partly done by 1fd999ec678e. But not completed.
Signed-off-by: Masaki Muranaka <monaka@monami-ya.jp>
@@ -277,7 +277,7 @@ int main() | ||
277 | 277 | cal_fd = open (calfile, O_CREAT | O_TRUNC | O_RDWR, |
278 | 278 | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); |
279 | 279 | } else if (tset != NULL) { |
280 | - cal_fd = open (tset->calfile, O_CREAT | O_RDWR, | |
280 | + cal_fd = open (tset->calfile, O_CREAT | O_TRUNC | O_RDWR, | |
281 | 281 | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); |
282 | 282 | } else { |
283 | 283 | cal_fd = open (TS_POINTERCAL, O_CREAT | O_TRUNC | O_RDWR, |