summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch
Commit message (Collapse)AuthorAgeFilesLines
* tslib: Set open mode for ts_calibate.cXiaofeng Yan2011-11-241-0/+30
Get patch from: http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/27614 There is a potentially "unsafe" use of open(). Ubuntu 8.10+, for instance, by default enables the compiler flag -D_FORTIFY_SOURCE=2 \ which throws an error of ts_calibrate.c. To fix this, \ set a mode in the open() call, patch patched ts_calibrate.c \ to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) and it compiles fine (From OE-Core rev: 61928384b91f7328aaa72c6d1299d8598c24574d) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>