[PATCH] login-utils: remove unwanted newlines from wall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



login-utils: remove unwanted newlines from wall

Prevent wall from adding an empty newline to every new line.

Signed-off-by: Matthias Koenig <mkoenig@xxxxxxx>

diff --git a/login-utils/wall.c b/login-utils/wall.c
index 2797f46..b5455c1 100644
--- a/login-utils/wall.c
+++ b/login-utils/wall.c
@@ -217,8 +217,6 @@ makemsg(fname)
 			if (cnt == 79 || ch == '\n') {
 				for (; cnt < 79; ++cnt)
 					putc(' ', fp);
-				putc('\r', fp);
-				putc('\n', fp);
 				cnt = 0;
 			}
 			carefulputc(ch, fp);

-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux