1
0
mirror of https://github.com/simh/simh.git synced 2026-01-13 07:19:43 +00:00

ETHER: Properly close file during running as root check

This commit is contained in:
Mark Pizzolato 2025-07-24 08:02:12 -10:00
parent 18c594004e
commit e300c26b4e

View File

@ -831,7 +831,7 @@ if (f == NULL)
return FALSE; return FALSE;
if (fgets(response, sizeof(response), f)) if (fgets(response, sizeof(response), f))
sim_trim_endspc (response); sim_trim_endspc (response);
fclose(f); pclose(f);
#endif #endif
return (0 == strcmp(response, "0")); return (0 == strcmp(response, "0"));
} }