about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HTFWriter.c4
-rw-r--r--src/LYLocal.c4
-rw-r--r--src/LYMain.c1
-rw-r--r--src/LYPrint.c4
-rw-r--r--src/LYUtils.c1
-rw-r--r--src/LYexit.c1
6 files changed, 8 insertions, 7 deletions
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index aadd1dbd..64172a7f 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -891,8 +891,8 @@ Prepend_BASE:
 	    fprintf(ret_obj->fp,
 		"<!-- Date: %s -->\n", anchor->date);
 	    if (anchor->last_modified && *anchor->last_modified
-			&& !strcmp(anchor->last_modified, anchor->date)
-			&& !strcmp(anchor->last_modified, ctime((time_t)0))) {
+			&& strcmp(anchor->last_modified, anchor->date)
+			&& strcmp(anchor->last_modified, "Thu, 01 Jan 1970 00:00:01 GMT")) {
 		fprintf(ret_obj->fp,
 		    "<!-- Last-Modified: %s -->\n", anchor->last_modified);
 	    }
diff --git a/src/LYLocal.c b/src/LYLocal.c
index 3cacc77e..b80c9a45 100644
--- a/src/LYLocal.c
+++ b/src/LYLocal.c
@@ -2358,8 +2358,8 @@ PRIVATE int LYExecv ARGS3(
 #else
 #if defined(_WINDOWS)
     if (!strcmp(path, TOUCH_PATH)) {
-#if defined(__BORLANDC__)
-	int fd = creat(argv[1], 'rw');
+#if defined(__BORLANDC__) || defined(__MINGW32__) 
+	int fd = _creat(argv[1], S_IREAD | S_IWRITE); 
 #else /* Visual C++ */
 	int fd = _creat(argv[1], _S_IREAD | _S_IWRITE);
 #endif
diff --git a/src/LYMain.c b/src/LYMain.c
index 0d82d8cc..c5cb0af9 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -2056,7 +2056,6 @@ PUBLIC int main ARGS2(
 	if (persistent_cookies)
 	    LYStoreCookies(LYCookieSaveFile);
 #endif /* EXP_PERSISTENT_COOKIES */
-	cleanup_files();	/* if someone starts with LYNXfoo: page */
 	exit_immediately(status);
     } else {
 	/*
diff --git a/src/LYPrint.c b/src/LYPrint.c
index 66f3ebd1..777aad7c 100644
--- a/src/LYPrint.c
+++ b/src/LYPrint.c
@@ -406,8 +406,8 @@ check_recall:
 	    fprintf(outfile_fp,
 		"<!-- Date: %s -->\n", HText_getDate());
 	    if (HText_getLastModified() != NULL
-			&& !strcmp(HText_getLastModified(), HText_getDate())
-			&& !strcmp(HText_getLastModified(), ctime((time_t)0))) {
+			&& strcmp(HText_getLastModified(), HText_getDate())
+			&& strcmp(HText_getLastModified(), "Thu, 01 Jan 1970 00:00:01 GMT")) {
 		fprintf(outfile_fp,
 		    "<!-- Last-Modified: %s -->\n", HText_getLastModified());
 	    }
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 6dbf737f..ceadb9cf 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -6788,6 +6788,7 @@ PUBLIC void LYCleanupTemp NOARGS
 	LYTrimPathSep(result);
 	CTRACE((tfp, "LYCleanupTemp removing %s\n", result));
 	rmdir(result);
+	lynx_temp_subspace = FALSE;
     }
 #endif
 }
diff --git a/src/LYexit.c b/src/LYexit.c
index 02ad6fa6..cc1d2b9a 100644
--- a/src/LYexit.c
+++ b/src/LYexit.c
@@ -153,6 +153,7 @@ PUBLIC void LYexit ARGS1(
 #undef exit
 #endif /* exit */
 
+    cleanup_files();	/* if someone starts with LYNXfoo: page */
 #ifndef VMS	/*  On VMS, the VMSexit() handler does these. - FM */
     fflush(stderr);
     if (LYOutOfMemory == TRUE) {