[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] daemons/getty: always print a newline before the banner
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/2] daemons/getty: always print a newline before the banner |
Date: |
Wed, 5 Feb 2014 01:22:12 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 05 Feb 2014 01:07:47 +0100, a écrit :
> * daemons/getty.c (load_banner): Drop first newline from default banner.
> (print_banner): Print a newline.
Ack.
> ---
> daemons/getty.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/daemons/getty.c b/daemons/getty.c
> index 7112660..40ad4d7 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 */;
> --
> 1.8.5.2
>
--
Samuel
Yep. Moi j'ai un clavier à une touche.
Par contre, ma souris a 102 boutons, c'est pas toujours pratique.
-+- OG in: Guide du Cabaliste Usenet - Le mulot contre attaque -+-
- [PATCH 1/2] exec: connect std{in,out,err} to the mach console, Justus Winter, 2014/02/04
- [PATCH 2/2] daemons/getty: always print a newline before the banner, Justus Winter, 2014/02/04
- Re: [PATCH 2/2] daemons/getty: always print a newline before the banner,
Samuel Thibault <=
- Re: [PATCH 1/2] exec: connect std{in,out,err} to the mach console, Samuel Thibault, 2014/02/04
- Re: [PATCH 1/2] exec: connect std{in,out,err} to the mach console, Ludovic Courtès, 2014/02/05