Commit Graph

16 Commits

Author SHA1 Message Date
aidan 9935ad76a5 Fix for bin/4637, mostly as discussed on current-users.
Allow relative file writes,
For relative file accesses, no longer continues searching dirlist once we find
_any_ file, even one for which we don't have access,
If no dirlist was given on the command line, apply same permissions check as
with 'absolute' requests before allowing access.
1999-02-07 21:38:44 +00:00
explorer ed33c87314 Remember the interface the request comes in on, so we will reply to the
same address.  This fixes tftp'ing to lo0 aliases.
1998-09-20 04:44:55 +00:00
lukem 15b3c2bfae * implement -u user and -g group - to specify the username and/or
group to run as.
  if -u isn't given, user defaults to "nobody".
  if -g isn't given, group defaults to the primary group of user.
  doesn't try and change uid or gid if they're already set ok.
  should solve PR 4218.
* deprecate register
* deprecate trailing \n in syslog messages
1998-07-29 11:31:22 +00:00
mycroft 0db548a927 const poisoning. 1998-07-26 14:57:56 +00:00
mrg d407e73999 clean up a bit of cruft. 1998-07-03 11:50:51 +00:00
lukem 52e679a138 fix so syslog works after chroot, by adding LOG_NDELAY to openlog.
from Andreas Wrede <andreas@planix.com>, [bin/4429]
1997-11-06 00:08:02 +00:00
mycroft b247da14fe Use S_IS*(), not S_IF*. 1997-10-19 18:17:27 +00:00
mrg 60cef5019e WARNS?=1. merge lite-2. 1997-10-07 09:46:45 +00:00
mrg 8a6057d663 get rid of supplementary groups. 1997-04-22 10:33:07 +00:00
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