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:
parent
18c594004e
commit
e300c26b4e
@ -831,7 +831,7 @@ if (f == NULL)
|
||||
return FALSE;
|
||||
if (fgets(response, sizeof(response), f))
|
||||
sim_trim_endspc (response);
|
||||
fclose(f);
|
||||
pclose(f);
|
||||
#endif
|
||||
return (0 == strcmp(response, "0"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user