Commits
Pavel Emelianov authored 64ff3996c4a
[BC] Return ENOMEM if pty charge fails It turned out that if glibc's openpty() call can't open /dev/ptmx file due to ENOENT or ENODEV error it starts thinking that ptmx is not present in the system at all and doesn't even try to open it in the future. This creates a local DoS: when VE hits UB_NUMPTY limit no /dev/ptmx will be opened ever after even if all ptys will be closed. Fix this be returning ENOMEM instead.