mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Don't try to close key.keyfile in -a mode, skeygetnext() will have
already done it and we are headed for exit anyway.
This commit is contained in:
parent
f1090c3063
commit
f3d5c213e2
@ -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>
|
* Copyright (c) 1997, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||||
@ -96,8 +96,6 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
if (ch == -1)
|
if (ch == -1)
|
||||||
errx(-1, "cannot open %s", _PATH_SKEYDIR);
|
errx(-1, "cannot open %s", _PATH_SKEYDIR);
|
||||||
else
|
|
||||||
(void)fclose(key.keyfile);
|
|
||||||
} else {
|
} else {
|
||||||
if ((pw = getpwuid(getuid())) == NULL)
|
if ((pw = getpwuid(getuid())) == NULL)
|
||||||
errx(1, "no passwd entry for uid %u", getuid());
|
errx(1, "no passwd entry for uid %u", getuid());
|
||||||
|
Loading…
Reference in New Issue
Block a user