head	1.3;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2006.05.26.23.53.37;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	2005.10.14.12.25.57;	author naddy;	state Exp;
branches;
next	1.1;

1.1
date	2000.03.05.09.27.28;	author kris;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Upgrade to 5.21o
@
text
@--- arcrun.c.orig	Wed Oct 12 19:22:18 2005
+++ arcrun.c	Sat May 27 03:47:30 2006
@@@@ -98,7 +98,7 @@@@
 		strcpy(sys, buf);
 
 	else {
-		if (warn) {
+		if (arcwarn) {
 			printf("File %s is not a .BAS, .BAT, .COM, or .EXE\n",
 			       hdr->name);
 			nerrs++;
@@@@ -112,7 +112,7 @@@@
               && strcmp(i, ".TTP")
               && strcmp(i, ".TOS"))
       {
-              if (warn) {
+              if (arcwarn) {
                       printf("File %s is not a .PRG, .TOS, or .TTP\n",
                               hdr->name);
                       nerrs++;
@@@@ -122,7 +122,7 @@@@
       }
 #endif
 
-	if (warn)
+	if (arcwarn)
 		if ((tmp = fopen(buf, "r")))
 			arcdie("Temporary file %s already exists", buf);
 	if (!(tmp = tmpopen(buf)))
@@@@ -146,7 +146,7 @@@@
 	if (system(buf))		/* try to invoke it */
 		arcdie("Execution failed for %s", buf);
 #endif
-	if (unlink(buf) && warn) {
+	if (unlink(buf) && arcwarn) {
 		printf("Cannot unsave temporary file %s\n", buf);
 		nerrs++;
 	}
@


1.2
log
@Update to 5.21n.  No user-visible changes.

The new upstream version now opens temporary files in a safe manner,
so our local patches for this are no longer needed.

Approved by:	ache
@
text
@d1 2
a2 2
--- arcrun.c.orig	Sun Oct  9 03:38:22 2005
+++ arcrun.c	Fri Oct 14 00:53:57 2005
d29 4
a32 2
 	if (!(tmp = fopen(buf, OPEN_W)))
@@@@ -148,7 +148,7 @@@@
a33 2
 	chdir(dir);
 	free(dir);		/* return to whence we started */
@


1.1
log
@From OpenBSD: generate tempfiles securely with mkstemps()

Approved by:	Maintainer
@
text
@d1 3
a3 3
--- ./arcrun.c.orig	Tue Aug 10 23:03:25 1999
+++ ./arcrun.c	Tue Aug 10 23:01:57 1999
@@@@ -94,7 +94,7 @@@@
d12 1
a12 1
@@@@ -108,7 +108,7 @@@@
d21 1
a21 1
@@@@ -118,7 +118,7 @@@@
d27 1
a27 1
 		if (tmp = fopen(buf, "r"))
d30 1
a30 1
@@@@ -142,7 +142,7 @@@@
@

