summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-11-29 14:44:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-11-29 14:44:21 +0000
commitdbf887eeee7c7553600db0ecfb0368a0c4ef29d7 (patch)
tree13943643ff38d32f9a2380ec31920685c7278293 /usr.bin
parent207ae3a0b364479eed19b3aae43ba329b26b1f1a (diff)
Remove useless getpwnam() call after getpwuid(). Noticed by deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/skeyinit/skeyinit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c
index 4cbe955b3d2..d552f620721 100644
--- a/usr.bin/skeyinit/skeyinit.c
+++ b/usr.bin/skeyinit/skeyinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyinit.c,v 1.65 2015/11/29 03:09:31 millert Exp $ */
+/* $OpenBSD: skeyinit.c,v 1.66 2015/11/29 14:44:20 millert Exp $ */
/* OpenBSD S/Key (skeyinit.c)
*
@@ -77,9 +77,6 @@ main(int argc, char **argv)
err(1, "no user with uid %u", getuid());
(void)strlcpy(me, pp->pw_name, sizeof me);
- if ((pp = getpwnam(me)) == NULL)
- err(1, "Who are you?");
-
for (i = 1; i < argc && argv[i][0] == '-' && strcmp(argv[i], "--");) {
if (argv[i][2] == '\0') {
/* Single character switch */