diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-28 20:58:36 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-28 20:58:36 +0000 |
commit | b605a8e06b128871ca9dfc37360548b403548215 (patch) | |
tree | 212880eaea3a91586d347c1d49b0823eff7574aa /usr.bin/skeyaudit | |
parent | 7beb964fdeff2332cc07a4bb9d426c0325365a7c (diff) |
Don't try to close key.keyfile in -a mode, skeygetnext() will have
already done it and we are headed for exit anyway.
Diffstat (limited to 'usr.bin/skeyaudit')
-rw-r--r-- | usr.bin/skeyaudit/skeyaudit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c index 3fa9e602712..7a94c3252f4 100644 --- a/usr.bin/skeyaudit/skeyaudit.c +++ b/usr.bin/skeyaudit/skeyaudit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyaudit.c,v 1.15 2003/03/14 04:29:04 millert Exp $ */ +/* $OpenBSD: skeyaudit.c,v 1.16 2003/04/28 20:58:35 millert Exp $ */ /* * Copyright (c) 1997, 2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -96,8 +96,6 @@ main(int argc, char **argv) } if (ch == -1) errx(-1, "cannot open %s", _PATH_SKEYDIR); - else - (void)fclose(key.keyfile); } else { if ((pw = getpwuid(getuid())) == NULL) errx(1, "no passwd entry for uid %u", getuid()); |