aboutsummaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2005-07-14 18:52:31 -0600
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-15 10:00:35 -0700
commit7a868a84143c0bad2dce3fd0337320524436da27 (patch)
treea6ff471947b0adf32c3a0a4378f33080396b585e /ident.c
parentd289d13625ffa568c3007c3620eaafeb521ac06d (diff)
downloadgit-7a868a84143c0bad2dce3fd0337320524436da27.tar.gz
git-7a868a84143c0bad2dce3fd0337320524436da27.tar.xz
[PATCH] ident.c: Disambiguate the error messages in setup_ident
If your user name is too long it is your sysadmin who hates you not your parents! Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> [ Fixed grammar ] Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ident.c b/ident.c
index 8da5609cb..9ef636ee8 100644
--- a/ident.c
+++ b/ident.c
@@ -26,13 +26,13 @@ int setup_ident(void)
/* Get the name ("gecos") */
len = strlen(pw->pw_gecos);
if (len >= sizeof(real_name))
- die("Your parents must have hated you");
+ die("Your parents must have hated you!");
memcpy(real_name, pw->pw_gecos, len+1);
/* Make up a fake email address (name + '@' + hostname [+ '.' + domainname]) */
len = strlen(pw->pw_name);
if (len > sizeof(real_email)/2)
- die("Your parents must have hated you");
+ die("Your sysadmin must hate you!");
memcpy(real_email, pw->pw_name, len);
real_email[len++] = '@';
gethostname(real_email + len, sizeof(real_email) - len);