summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-07-20 05:22:31 +0200
committerDamien Miller <djm@mindrot.org>2013-07-20 05:22:31 +0200
commit3009d3cbb89316b1294fb5cedb54770b5d114d04 (patch)
treeafe0f434e6d12240a6be3a03f8368a07b61381b4 /ssh-keygen.c
parent - djm@cvs.openbsd.org 2013/07/20 01:43:46 (diff)
downloadopenssh-3009d3cbb89316b1294fb5cedb54770b5d114d04.tar.xz
openssh-3009d3cbb89316b1294fb5cedb54770b5d114d04.zip
- 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 @@
-/* $OpenBSD: ssh-keygen.c,v 1.229 2013/07/12 05:42:03 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.230 2013/07/20 01:44:37 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2214,7 +2214,7 @@ main(int argc, char **argv)
/* we need this for the home * directory. */
pw = getpwuid(getuid());
if (!pw) {
- printf("You don't exist, go away!\n");
+ printf("No user exists for uid %lu\n", (u_long)getuid());
exit(1);
}
if (gethostname(hostname, sizeof(hostname)) < 0) {