diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 1996-04-02 19:57:13 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 1996-04-02 19:57:13 +0000 |
commit | 967ce4a750f71fc1fdfe9ae5993de1466e372f69 (patch) | |
tree | f5db0d89b6aa3528bcb8338651611404b53e62fe /check.c | |
parent | ead5f15a18d0b9a82f2d02feb777c6b727a3624d (diff) | |
download | sudo-967ce4a750f71fc1fdfe9ae5993de1466e372f69.tar.gz |
was closing an fd that may not have been opened
Diffstat (limited to 'check.c')
-rw-r--r-- | check.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -343,7 +343,8 @@ static void update_timestamp() if (fd < 0) perror("update_timestamp: open"); - close(fd); + else + close(fd); } /* relinquish root */ |