summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/grantpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some now-unused macros.John Baldwin2008-01-151-3/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=175362
* Put back the openpty(3) and ptsname(3) fixes but don't disable ptsname(3)John Baldwin2008-01-151-46/+31
| | | | | | | | on pts(4) devices this time. This fixes the issues while leaving pts(4) enabled on HEAD. Notes: svn path=/head/; revision=175352
* Back out last commit, since it accidentally broke pts.Colin Percival2008-01-151-37/+48
| | | | | | | | The security fix will be re-committed soon, hopefully without breaking anything. Notes: svn path=/head/; revision=175350
* Fix issues which allow snooping on ptys. [08:01]Colin Percival2008-01-141-48/+37
| | | | | | | | | | Fix an off-by-one error in inet_network(3). [08:02] Security: FreeBSD-SA-08:01.pty Security: FreeBSD-SA-08:02.libc Notes: svn path=/head/; revision=175330
* Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends:John Baldwin2007-12-211-22/+23
| | | | | | | | | | | | | - Use PTY* for all pty(4) related constants. - Use PTMX* for all pts(4) related constants. - Consistently use _PATH_DEV PTMX rather than "/dev/ptmx". - Revert 1.7 and properly fix it by using the correct prefix string for pts(4) masters. MFC after: 3 days Notes: svn path=/head/; revision=174842
* Update posix_openpt(3) to handle 512 ptys. This was missed in the earlierJohn Baldwin2007-12-131-2/+2
| | | | | | | | | pty(4) changes. MFC after: 3 days Notes: svn path=/head/; revision=174565
* Remove extra slash from pty slave device name returned by ptsname.Alexander Kabaev2006-02-131-1/+1
| | | | Notes: svn path=/head/; revision=155593
* If the sysctl kern.pts.enable doesn't exist, check that /dev/ptmx is there,Olivier Houchard2006-01-291-2/+7
| | | | | | | | | and if so, use the pts system. Suggested by: rwatson Notes: svn path=/head/; revision=154965
* ptsname() bits for pts.Olivier Houchard2006-01-261-5/+45
| | | | Notes: svn path=/head/; revision=154836
* Fix ptsname(3) by converting it to use devname(3) to obtain the name ofJoe Marcus Clarke2005-07-071-3/+4
| | | | | | | | | | | | | | | a tty device instead of the legacy minor number approach. This is known to fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT. Thanks to scottl for the snprintf() approach idea. Reviewed by: phk Tested by: pav mich Approved by: re (scottl) Notes: svn path=/head/; revision=147811
* Do not require the pty(4) majors to be anything in particular.Brian Feldman2005-03-041-3/+0
| | | | Notes: svn path=/head/; revision=143137
* Fix three warnings:Tim J. Robbins2003-01-041-2/+2
| | | | | | | | | o #include <stdio.h> to make sprintf()'s prototype visible. o Remove unused variable: sbuf. o Don't use assignment as truth value. Notes: svn path=/head/; revision=108646
* Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akinJuli Mallett2003-01-021-0/+259
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty. Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@ Notes: svn path=/head/; revision=108574