Commit Graph

71 Commits

Author SHA1 Message Date
shm ef0b7ea3b6 CID 976523: add FALLTHROUGH 2016-07-20 20:18:21 +00:00
wiz 369139181c Bump date for previous. 2015-05-05 08:08:33 +00:00
buhrow 3a2e9669fe Add a -b flag so that clients that return their acknowledgements to the
broadcast address can inter-operate with the tftpd server.
Discussed in bin/49868
2015-05-05 05:50:31 +00:00
jnemeth 4862012f0e - complete renaming of -w to -c from 1.38
- update usage string to match
- this fixes PR/48234 by Jeff Woodall
2013-10-04 07:51:48 +00:00
christos 1c129848aa Simplify error handling and make it actually return a useable error code.
(Maxime Villard)
2013-07-04 02:58:20 +00:00
christos 59b4948a7f Check snprintf for -1 (Maxime Villard) 2013-07-03 21:20:45 +00:00
christos 7807c80061 Prevent buffer overflows; reported by Maxime Villard 2013-06-28 17:20:15 +00:00
plunky f65a48c2ec max WARNS is 4 2011-10-13 17:23:28 +00:00
joerg 9eba1e423c Use __dead 2011-08-29 20:41:06 +00:00
wiz 55767fc891 Wording. 2010-04-29 21:34:04 +00:00
hubertf 81fae5271a Rename -w to -c by popular demand
(allow file 'c'reation - 'w'riting was always available, with some twist;
 plus there's already such a feature elsewhere, so let's try to not
 diverge needlessly)
2010-04-29 20:13:46 +00:00
wiz c80baa2258 Sort options in SYNOPSIS; improve wording. 2010-04-29 07:04:44 +00:00
hubertf cb578cac71 tftpd(8): Add -w so files can be uploaded without requiring them
to be created before the upload. See the section on security
	considerations before enabling. [hubertf 20100429]

Addresses PR bin/43164.
2010-04-28 22:21:51 +00:00
mbalmer b877ced633 fix build 2010-01-09 10:46:31 +00:00
christos 77c1fa357d newer versions of NetBSD turn on -Wsign-compare 2010-01-09 01:25:09 +00:00
wiz b54de515fb Sync usage with man page. 2010-01-08 23:27:08 +00:00
wiz c13fde4224 Sort options in SYNOPSIS.
New sentence, new line.
Use only mdoc markup.
Make HTML-ready.
2010-01-08 23:25:07 +00:00
christos 73a2253ad9 Patrick Welche <prlw1@cam.ac.uk>
- add -p pathsep option
    - make wrap to zero work, but produce a warning
While here:
    - fix gcc warnings, in particular variable clobbered warnings
      (compiling with fewer warnings does not really fix the problem)
2010-01-08 21:05:14 +00:00
lukem 500db00274 Default to WARNS=4
Exceptions that need a lower level are:
	getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
	hpropd ipropd-master ipropd-slave kadmind kpasswdd
2009-03-16 02:24:55 +00:00
lukem c12ec9011a fix shadowed variable 2009-03-16 01:56:21 +00:00
lukem f0bccc0f62 Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:24:38 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
dsl 1869f0e146 Add (unsigned char) cast to ctype functions 2004-11-05 21:56:01 +00:00
kleink a87145f3fc Make sure we tzset() before chroot(); after passing that point
it may no longer be accessible for syslog() to format messages.
2004-05-05 20:15:45 +00:00
briggs 58f4d6af26 Remove duplicated headers. Pointed out by Peter Postma in PR bin/24002. 2004-01-06 14:30:10 +00:00
agc 8e6ab8837d Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-08-07 09:46:37 +00:00
wiz 13886c157c Bump date for last but one. 2003-07-04 12:11:45 +00:00
wiz a03d9214b1 s/&/and/ 2003-07-04 12:11:02 +00:00
briggs 4441128638 Support negotiation and use of TFTP Option Extension (rfc 2347) for the
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).

Contributed by Wasabi Systems, Inc.
2003-06-11 01:43:52 +00:00
wiz d43e332f1e setup -> set up. 2003-05-14 12:11:03 +00:00
lukem bafe5da620 use bsd.own.mk instead of the (obvious typo of) bsd.obj.mk 2002-09-18 06:24:33 +00:00
lukem f794aa60bb Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:54:34 +00:00
wiz 4a62f5dc2d Drop an unnecessary .Pp. 2002-01-15 02:28:41 +00:00
itojun b68a35f950 __ss_{len,family} hack is no longer necessary 2001-11-19 03:20:45 +00:00
christos d8c9b346a4 Enable verbose debugging messages via tftpd. 2001-10-09 18:46:18 +00:00
wiz f3f6c5b675 `accessible' only has one `a'. 2001-06-19 12:52:20 +00:00
cgd 65a1026492 convert to use getprogname() 2001-02-19 22:43:42 +00:00
lukem edc4b40801 convert to ansi knf
replace (sole use of) sprintf() with snprintf()
only syslog debug messages if logging
2001-01-09 23:29:22 +00:00
itojun b7b6056081 make sure we do not overrun packet buffer when we set error message string. 2000-11-21 13:50:25 +00:00
itojun 9b1ccfd10e handle getnameinfo error properly 2000-11-21 13:39:07 +00:00
dogcow 90c3bfc9b0 defs had 'short block' for blocksize; changed defs to be unsigned.
added note to tftpd.8 that this bug hits multiple tftp clients.
2000-10-18 01:35:45 +00:00
itojun f745df9885 add line break. 1999-07-12 20:25:35 +00:00
itojun 47b0e5ff1d IPv6 support. 1999-07-12 20:17:09 +00:00
carrel 97c1b3499a If opening files for writing, be sure to truncate. 1999-06-23 15:41:48 +00:00
garbled f124765044 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:25:43 +00:00
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
fair 59e43c6946 Revise text about filenames as suggested by Geoff Wing in PR#6366.
Add reference in SEE ALSO to RFC 1350
1999-01-13 11:16:57 +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