summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-07-20 13:22:31 +1000
committerDamien Miller <djm@mindrot.org>2013-07-20 13:22:31 +1000
commit3009d3cbb89316b1294fb5cedb54770b5d114d04 (patch)
treeafe0f434e6d12240a6be3a03f8368a07b61381b4 /ssh-keygen.c
parent32ecfa0f7920db31471ca8c1f4adc20ae38ed9d6 (diff)
- djm@cvs.openbsd.org 2013/07/20 01:44:37
[ssh-keygen.c ssh.c] More useful error message on missing current user in /etc/passwd
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 1edc965d5..03c444d42 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.229 2013/07/12 05:42:03 djm Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.230 2013/07/20 01:44:37 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2214,7 +2214,7 @@ main(int argc, char **argv)
2214 /* we need this for the home * directory. */ 2214 /* we need this for the home * directory. */
2215 pw = getpwuid(getuid()); 2215 pw = getpwuid(getuid());
2216 if (!pw) { 2216 if (!pw) {
2217 printf("You don't exist, go away!\n"); 2217 printf("No user exists for uid %lu\n", (u_long)getuid());
2218 exit(1); 2218 exit(1);
2219 } 2219 }
2220 if (gethostname(hostname, sizeof(hostname)) < 0) { 2220 if (gethostname(hostname, sizeof(hostname)) < 0) {