Commit Graph

13 Commits

Author SHA1 Message Date
Stephen Heumann f659286e00 Rewrite environment-cleaning code to not directly modify environ or its contents.
The old code didn't work correctly with GNO's environ implementation and could lead to crashes.
2016-01-09 18:04:58 -06:00
Stephen Heumann 8a3b1e25cd When forking the child process, wait until the child has exec'd before continuing in the parent.
Also includes a few other changes for safety, e.g. making the child exit via QuitGS rather than exit() or _exit().

The vfork_and_run() routine is based on code from my port of hush.
2016-01-09 12:46:38 -06:00
Stephen Heumann 3eba861bdb Remove root files in "make clean" 2016-01-07 20:43:59 -06:00
Stephen Heumann 1d35c61146 Misc. small changes to remove uses of unavailable functions in telnetd.
Also include libutil for login_tty function.
2015-06-01 20:43:53 -05:00
Stephen Heumann af6c2cbe7a Add an implementation for GNO of posix_openpt and related functions for handling ptys. 2015-06-01 16:25:56 -05:00
Stephen Heumann aeddbd055f Divide telnet sources into two segments.
At this point, telnet will build and run, although it doesn't work properly.
2015-05-31 23:44:46 -05:00
Stephen Heumann 46f340c657 Update makefile to build and link in libtelnet files used exclusively by either telnet or telnetd only for the appropriate binary. 2015-05-31 23:20:21 -05:00
Stephen Heumann 391736d065 Remove source files needed only for authentication or encryption, which we've disabled. 2015-05-31 22:55:19 -05:00
Stephen Heumann e39285b030 Add missing inet_ntop function 2015-05-31 21:39:51 -05:00
Stephen Heumann ff78ce7134 Add missing vasprintf function 2015-05-31 21:11:05 -05:00
Stephen Heumann 4f442220c5 Add strlcpy, which GNO's libc doesn't have. 2015-05-31 20:23:06 -05:00
Stephen Heumann 9bab5c3dec Add an implementation of getaddrinfo and getnameinfo, which are missing in GNO.
These are adapted from a version in netperf.
2015-05-31 16:56:05 -05:00
Stephen Heumann cd51610a6f Add a GNO-specific makefile, and move stuff that's common between GNO and OS X makefiles to a file included by both of them. 2015-05-31 16:21:53 -05:00