Searched hist:173572 (Results 1 - 1 of 1) sorted by relevance
/freebsd-11.0-release/usr.bin/write/ | ||
H A D | write.c | diff 173572 Mon Nov 12 20:02:21 MST 2007 jhb write(1) needs to strip off the leading /dev/ from the tty name for the current tty as returned from ttyname(3) so it can try to avoid writing to the current tty if possible. Previously, it did this by trimming off any leading directory (effectively performing a basename(3) on the path returned from ttyname(3)). However, this chopped off too much of the path for ttys who have directories in their name such as pts(4). Instead, just strip off the leading /dev/ from the path returned by ttyname(3). This fixes write(1) when using pts(4). MFC after: 1 week Reported by: rwatson |
Completed in 51 milliseconds