The talkd security hole can ealso be exploited by wall (and thus rwall).
write and talk are not affected. Now print out escape sequences in the same way as is done by write(1).
This commit is contained in:
parent
26305b211a
commit
acc879c13f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3809
@ -178,6 +178,11 @@ makemsg(fname)
|
||||
putc('\r', fp);
|
||||
putc('\n', fp);
|
||||
cnt = 0;
|
||||
} else if (!isprint(ch) && !isspace(ch) && ch != '\007')
|
||||
{
|
||||
putc('^', fp);
|
||||
putc(ch^0x40, fp); /* DEL to ?, others to a
|
||||
lpha */
|
||||
} else
|
||||
putc(ch, fp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user