提交 7a868a84 编写于 作者: E Eric W. Biederman 提交者: Linus Torvalds

[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: NEric W. Biederman <ebiederm@xmission.com>

[ Fixed grammar ]
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 d289d136
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册