[PATCH RESEND] cttyhack: remove the trailing newline when reading console name from sysfs

Denys Vlasenko vda.linux at googlemail.com
Tue Aug 16 21:31:19 UTC 2011


On Sunday 14 August 2011 22:55, Kevin Cernekee wrote:
> The current version of cttyhack does not properly truncate the newline
> at the end of the string read from /sys/class/tty/console/active .
> Prior discussion here:
> 
> http://lists.busybox.net/pipermail/busybox/2011-July/thread.html#76139
> http://lists.busybox.net/pipermail/busybox/2011-July/076276.html
> 
> I have verified that the problem impacts v1.19.0.
> 
> Bloat-o-meter:
> 
> function                                             old     new   delta
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0)                 Total: 0 bytes
>    text    data     bss     dec     hex filename
>  478349    1338    4441  484128   76320 busybox_old
>  478349    1338    4441  484128   76320 busybox_unstripped
> 
> I am also attaching a (new) spelling/whitespace fix, for the same file.

Applied, thanks!

-- 
vda
 


More information about the busybox mailing list