]> git.ipfire.org Git - thirdparty/util-linux.git/commit
write: stop removing and adding /dev/ in front of tty string
authorSami Kerola <kerolasa@iki.fi>
Sat, 14 May 2016 18:39:37 +0000 (19:39 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 3 Jul 2016 22:35:10 +0000 (23:35 +0100)
commita58b90255c247efc455e6e84ffa0601b325ac090
tree870cd9309ccb76c3572feec6f8b8a08a32a3a8bf
parent50e417c8ad08e6a5d3c15adc39c16b6085b3cab6
write: stop removing and adding /dev/ in front of tty string

Add both path and tty name representations of tty's to control structure,
that point to same string beginning from different depths.  This way there
is no need to removing and adding /dev/ in front of tty string all the time.

Secondly this change makes it possible to use of get_terminal_name() from
ttyutils.c.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/Makemodule.am
term-utils/write.c