]> code.ossystems Code Review - openembedded-core.git/commit
tslib: Set open mode for ts_calibate.c
authorXiaofeng Yan <xiaofeng.yan@windriver.com>
Thu, 17 Nov 2011 11:03:21 +0000 (19:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Nov 2011 22:09:20 +0000 (22:09 +0000)
commit61928384b91f7328aaa72c6d1299d8598c24574d
tree416397efad61725eb1bac9af9d5af3446437c05d
parente2c4dff079722f256ddcab9630b5b3f8f6421cc9
tslib: Set open mode for ts_calibate.c

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

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch [new file with mode: 0644]
meta/recipes-graphics/tslib/tslib_1.0.bb