diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-11-01 10:49:23 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-11-01 10:49:23 +0000 |
commit | 9b80eb276466cb5f1c5d221bf0afc9a55c488916 (patch) | |
tree | 22cb70ed2b856b12b6beb11e212ddf74f637ebce /usr.bin | |
parent | 5610b207370497cadc4cb1fb897509169a7758c5 (diff) |
Pull from master repo:
Don't let temporary file lie around if -S is used. ok ragge@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pcc/cc/cc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/cc.c b/usr.bin/pcc/cc/cc.c index cd8e7109397..f04fb8df00e 100644 --- a/usr.bin/pcc/cc/cc.c +++ b/usr.bin/pcc/cc/cc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cc.c,v 1.8 2007/10/22 21:43:51 stefan Exp $ */ +/* $OpenBSD: cc.c,v 1.9 2007/11/01 10:49:22 stefan Exp $ */ /* * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. * @@ -379,7 +379,8 @@ main(int argc, char *argv[]) if(nc==0) goto nocom; if (pflag==0) { - tmp3 = gettmp(); + if (!sflag) + tmp3 = gettmp(); tmp4 = gettmp(); } if (signal(SIGINT, SIG_IGN) != SIG_IGN) /* interrupt */ |