1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-01 17:35:54 +00:00

Merge pull request #187 from Interlisp/revert-170-dont-open-unopened-file

Revert "Don't close a file that hasn't been opened (2)"
This commit is contained in:
Larry Masinter
2021-01-05 18:56:11 -08:00
committed by GitHub

View File

@@ -453,6 +453,7 @@ LispPTR COM_openfile(register LispPTR *args)
* maintain a version status.
*/
if (maintain_version(file, (FileName *)NULL, 1) == 0) {
TIMEOUT(rval = close(fd));
*Lisp_errno = errno;
return (NIL);
}