mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
89ae525662
This is a port of Kenneth L. Harrenstien's KLH10 DEC PDP-10 mainframe emulator. PR: ports/39955 Submitted by: Ken Stailey <kstailey@speakeasy.net>
26 lines
661 B
Plaintext
26 lines
661 B
Plaintext
--- src/vmtape.c 2002/01/12 16:47:42 1.1
|
|
+++ src/vmtape.c 2002/01/12 16:48:35
|
|
@@ -696,13 +696,11 @@
|
|
|
|
/* Now verify filenames don't already exist */
|
|
if (cfn && (cf = fopen(cfn, "r"))) {
|
|
- fclose(cf);
|
|
vmterror(t, "Tape control file \"%.256s\" already exists", cfn);
|
|
goto badret;
|
|
}
|
|
|
|
if (df = fopen(dfn, "rb")) {
|
|
- fclose(df);
|
|
vmterror(t, "Tape data file \"%.256s\" already exists", dfn);
|
|
goto badret;
|
|
}
|
|
@@ -714,8 +712,6 @@
|
|
goto badret;
|
|
}
|
|
if (!(df = fopen(dfn, "w+b"))) {
|
|
- fclose(df);
|
|
- if (cfn) fclose(cf);
|
|
vmterror(t, "Cannot create tape data file \"%.256s\": %.80s",
|
|
dfn, os_strerror(errno));
|
|
goto badret;
|