]> git.karo-electronics.de Git - mv-sheeva.git/commit
perf: fix temporary file ownership check
authorVasiliy Kulikov <segoon@openwall.com>
Thu, 11 Aug 2011 20:55:37 +0000 (00:55 +0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Aug 2011 11:28:17 +0000 (08:28 -0300)
commite9b52ef2228cd0bed7a4465c693a39489e2c338d
tree5a3ea5c427fc93cbdf48b383a8a7d37e7cac567f
parentf57b05ed532ccf3b3e22878a5678ca10de50ad29
perf: fix temporary file ownership check

A file in /tmp/ might be a symlink, so lstat() should be used instead of
stat().

Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20110811205537.GA22864@albatros
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c