was closing an fd that may not have been opened

This commit is contained in:
Todd C. Miller
1996-04-02 19:57:13 +00:00
parent 1265fcc4f8
commit 0eb20432fe

View File

@@ -343,7 +343,8 @@ static void update_timestamp()
if (fd < 0) if (fd < 0)
perror("update_timestamp: open"); perror("update_timestamp: open");
close(fd); else
close(fd);
} }
/* relinquish root */ /* relinquish root */