Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(468)

Issue 4602050: code review 4602050: gopack: remove warning from the use of mktemp (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by dave
Modified:
13 years, 9 months ago
Reviewers:
CC:
golang-dev, rsc, iant2
Visibility:
Public.

Description

gopack: remove warning from the use of mktemp gcc-4.6 considers mktemp to be racey

Patch Set 1 #

Patch Set 2 : diff -r d1e5d7548fee https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r d1e5d7548fee https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M src/cmd/gopack/ar.c View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9
dave_cheney.net
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-10 00:53:01 UTC) #1
dave_cheney.net
Tested on darwin and linux. If someone from the plan 9 fold can test that ...
13 years, 9 months ago (2011-06-10 00:53:30 UTC) #2
rsc
This code is never called. You can replace the whole function with sysfatal("page");
13 years, 9 months ago (2011-06-10 00:58:51 UTC) #3
iant2
LGTM dave@cheney.net writes: > Reviewers: golang-dev_googlegroups.com, > > Message: > Hello golang-dev@googlegroups.com, > > I'd ...
13 years, 9 months ago (2011-06-10 01:04:23 UTC) #4
iant
*** Submitted as http://code.google.com/p/go/source/detail?r=b2d04a287628 *** gopack: remove warning from the use of mktemp gcc-4.6 considers ...
13 years, 9 months ago (2011-06-10 01:04:38 UTC) #5
iant2
Russ Cox <rsc@golang.org> writes: > This code is never called. > You can replace the ...
13 years, 9 months ago (2011-06-10 01:06:11 UTC) #6
dave_cheney.net
Thanks Ian. Russ, this following on CL reduces the function to a call to sysfatal, ...
13 years, 9 months ago (2011-06-10 01:08:19 UTC) #7
rsc
No worries. Please do replace the function though, since there is no mkstemp on Plan ...
13 years, 9 months ago (2011-06-10 01:08:52 UTC) #8
dave_cheney.net
13 years, 9 months ago (2011-06-10 01:15:02 UTC) #9
If you happy to have armalloc exit if malloc fails, then I can remove
page's calling function.

Please let me know if that is ok, and I'll update 4601051

On Fri, Jun 10, 2011 at 11:08 AM, Russ Cox <rsc@golang.org> wrote:
> No worries.  Please do replace the function though,
> since there is no mkstemp on Plan 9.
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b