On Sat, Nov 12, 2016 at 07:21:07AM +0500, Mihail Konev wrote: > > Is the check correct? > > In particular, should it put any restrictions > on what is before and after the -pty%d- (slashes, non-[-a-z0-9] ?) > A spare question ... fhandler_tty.cc says it all: \Device\NamedPipe\[a-z0-9]+-[a-z0-9]+-pty[0-9]+-[-a-z0-9]+