summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-02-05 01:00:48 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-02-05 01:00:48 +0100
commitb17be9b496a6dfe10babb8102d8e55ad9a3fc2e2 (patch)
tree2afe1c4765b1f5f965ddaaa3e349cfa760afa7f5 /daemons
parenta5b95344a4f9fd3202e627ce08a3a492e35a0fff (diff)
daemons/getty: always print a newline before the banner
* daemons/getty.c (load_banner): Drop first newline from default banner. (print_banner): Print a newline.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/getty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/getty.c b/daemons/getty.c
index 7112660e..40ad4d73 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -102,7 +102,7 @@ load_banner (void)
out:
free (buf);
- return "\r\n\n\\s \\r (\\n) (\\l)\r\n\n";
+ return "\n\\s \\r (\\n) (\\l)\r\n\n";
}
/* Print a suitable welcome banner */
@@ -115,6 +115,7 @@ print_banner (int fd, char *ttyname)
if (uname (&u))
u.sysname[0] = u.release[0] = '\0';
+ write (fd, "\r\n", 2);
for (s = load_banner (); *s; s++)
{
for (t = s; *t && *t != '\\'; t++) /* nomnomnom */;