Commit Graph

7 Commits

Author SHA1 Message Date
jtc ad6a2b10b2 The tftpd daemon must be invoked as root in order for the chroot()
call to succeed, and must give up those privledges as soon as the new
root has been aquired.  Use setgid() & setuid() to explicitly set the
user and group IDs to non- priveleged values.

This change now requires tftpd to be executed by root.  I haven't
studied the security implications of making it setuid root, so
inetd.conf needs to be changed to start it as root.
1995-06-04 20:48:22 +00:00
mycroft e4cc49cc0d Fill in sin_len. 1995-06-03 22:47:20 +00:00
cgd 9fd1fef05a From Christos Zoulas <christos@deshaw.com>:
As promised. the problem was that tftpd would core dump if given no arguments.
I fixed it to use getopt. I also changed 0 to fd, because I had added some
debugging code that allowed me to start it from the command line.
1994-03-01 08:27:44 +00:00
mycroft 45fe1558b2 Add -s flag, per Roland McGrath, with changes and a manual page addition by me. 1994-01-10 16:29:46 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c1d3c01291 Cleanup for GCC 2. 1993-04-18 18:14:35 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00