From 601e61fa8c939814f3ad567e7cd7c667f57dbba3 Mon Sep 17 00:00:00 2001 From: Mike Galbraith Date: Thu, 28 May 2009 16:28:53 +0200 Subject: [PATCH] --- yaml --- r: 147588 b: refs/heads/master c: 229c4eedcedcdadf70411120ba34bc37554a74bd h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/perf_counter/builtin-record.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 0c7ea6989f70..44b1322061b3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 22a4f650d686eeaac3629dae1c4294381485efdf +refs/heads/master: 229c4eedcedcdadf70411120ba34bc37554a74bd diff --git a/trunk/Documentation/perf_counter/builtin-record.c b/trunk/Documentation/perf_counter/builtin-record.c index 23d1224ce98c..96bfb7c5f1e4 100644 --- a/trunk/Documentation/perf_counter/builtin-record.c +++ b/trunk/Documentation/perf_counter/builtin-record.c @@ -340,7 +340,7 @@ static int __cmd_record(int argc, const char **argv) assert(nr_cpus <= MAX_NR_CPUS); assert(nr_cpus >= 0); - output = open(output_name, O_CREAT|O_RDWR, S_IRWXU); + output = open(output_name, O_CREAT|O_EXCL|O_RDWR, S_IRWXU); if (output < 0) { perror("failed to create output file"); exit(-1);