tslib fails to compile on Ubuntu 8.10+, easy patch
tslib fails to compile on Ubuntu 8.10+, easy patch

I noticed that gcc fails to compile the latest svn copy of tslib due
to 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 on lines 253 and 255 of ts_calibrate.c. This is a pretty
minor issue, but could potentially stop some people using Ubuntu from
compiling unless they realize what's going on.

To fix this, all you need to do is set a mode in the open() call. I
patched ts_calibrate.c to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP |
S_IROTH) and it compiles fine. See below.

Signed-off-by: Daniel Jabbour <3d0f3b9ddcacec30c4008c5e030e6c13a478cb4f@laptouchinc.com>
Signed-off-by: Chris Larson <8cf06b7089d5169434d5def8b2d1c9c9c95f6e71@kergoth.com>

pssc/tslib,jaretcantu/tslib,folkien/tslib,leighmurray/tslib,pssc/tslib,folkien/tslib,pssc/tslib,kergoth/tslib,vpeter4/tslib,lin2724/tslib,vpeter4/tslib,lin2724/tslib,etmatrix/tslib,leighmurray/tslib,kobolabs/tslib,kergoth/tslib,kergoth/tslib,etmatrix/tslib,jaretcantu/tslib,kergoth/tslib,etmatrix/tslib,kobolabs/tslib,kobolabs/tslib