tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openpty: limits for name

A Linux man page I found for openpty says:

       Nobody knows how much space should be reserved for name. So,
       calling openpty() or forkpty() with non-NULL name may not be secure.

Our man page is silent on that.

The code in libutil/pty.c just does:
 if (name)
    (void)strcpy(name, linep);

I wonder if we (can and) want to promise a limit in the man page, or
just add a comment like the one in the Linux man page.

Home | Main Index | Thread Index | Old Index