Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] tslib: Set open mode for ts_calibate.c
Date: Fri, 25 Nov 2011 00:06:39 +0000	[thread overview]
Message-ID: <1322179599.10928.43.camel@ted> (raw)
In-Reply-To: <3dccc17f05b5413aa0190416feeff2a14d72be8a.1321527995.git.xiaofeng.yan@windriver.com>

On Thu, 2011-11-17 at 19:10 +0800, Xiaofeng Yan wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> 
> 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>
> ---
>  .../tslib/set-open-mode-for-ts_calibrate_c.patch   |   30 ++++++++++++++++++++
>  meta/recipes-graphics/tslib/tslib_1.0.bb           |    5 ++-
>  2 files changed, 33 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-graphics/tslib/tslib/set-open-mode-for-ts_calibrate_c.patch

Merged to master, thanks.

Richard




      reply	other threads:[~2011-11-25  0:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17 11:10 [PATCH 0/1] tslib:Set open mode for ts_calibate.c Xiaofeng Yan
2011-11-17 11:10 ` [PATCH 1/1] tslib: Set " Xiaofeng Yan
2011-11-25  0:06   ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1322179599.10928.43.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox