Commit graph

49 commits

Author SHA1 Message Date
hpa
725183b5ba Check that the received address is really AF_INET. 2002-10-23 20:47:23 +00:00
hpa
b5b455d116 Correct LOG_WARN -> LOG_WARNING 2002-09-03 19:03:02 +00:00
hpa
d2692c9f98 Downgrade client-side errors from LOG_ERR to LOG_WARN 2002-09-03 19:02:02 +00:00
hpa
7a3373656d Fix running on Cygwin *without* chroot 2001-11-29 22:07:50 +00:00
hpa
64ae5fda79 -> Clean up the use of autoconf macros a bit.
-> Always pass O_TEXT/O_BINARY and "t"/"b" respectively, as appropriate.
2001-11-29 22:02:52 +00:00
hpa
5c5b5e8a0b More Cygwin compatibility work -- now actually WORKS!
Always leave fds 0-2 defined; point them to /dev/null rather than
just closing them...
2001-11-29 20:53:59 +00:00
hpa
98d7543721 Working on version 0.29.
Initial work for compiling on Win32/Cygwin.

Posixly correctness.
2001-11-27 10:05:13 +00:00
hpa
f9e7950883 Fix listen mode (-l) 2001-11-20 19:45:11 +00:00
hpa
78fd7348ea Add the -p option for using regular Unix permissions. 2001-11-17 01:55:08 +00:00
hpa
57044bc5df Interpret the \i and \x escape sequences to insert the IP of the
requesting host
2001-11-16 23:38:29 +00:00
hpa
3d401fa4c9 Be paranoid about multiple inclusions (apparently some systems don't like
it for certain header files.)  Be a little bit more careful in setting
up the standard environment in config.h.  This is AIX portability work.
2001-11-16 20:15:27 +00:00
hpa
7028f9064a Kill SA_RESETHAND, it doesn't exist on MacOS X and isn't necessary 2001-11-15 04:11:39 +00:00
hpa
7edb3d5b92 Display configuration information when using the -V option... 2001-11-14 04:16:23 +00:00
hpa
06bfb2bf4f - Better parsing of the "connect" command (tftp).
- Move missing header file stuff consistently into config.h.
- Make "make -j" work correctly.
2001-11-13 19:58:32 +00:00
hpa
d2206bf9b9 Fix the Sorcerer's Apprentice bug in both the client and the server. 2001-11-13 04:16:12 +00:00
hpa
480bee14e9 (Finally) handle block number wraparound correctly. 2001-11-13 03:11:52 +00:00
hpa
2c31169f57 Major overhaul of the portability stuff; port to autoconf 2.52 2001-11-12 10:03:04 +00:00
hpa
3df5c1f25c Even more portability work... 2001-11-12 06:46:56 +00:00
hpa
5b21a932a6 Avoid using basename(), it's way too nasty from a portability
standpoint.

Change recvfile, sendfile -> tftp_* due to namespace collision problems.
2001-11-12 05:57:29 +00:00
hpa
11c90592b5 Avoid possible memory-smashing bug, and rewrite some really stupid
initialization code.
2001-08-10 18:47:11 +00:00
hpa
5b0cb11445 Support "constipation" -- compile cleanly with -Wwrite-strings 2001-08-10 18:25:08 +00:00
hpa
9b5b8c5640 Clean up some warnings when compiling without remap support. 2001-08-10 18:12:16 +00:00
hpa
e3570e4d31 Add support for freeing a remap file datastructure, so we avoid a
memory leak.
2001-08-10 18:07:46 +00:00
hpa
519eb0ba91 Add missing #ifdef WITH_REGEX 2001-08-10 17:58:46 +00:00
hpa
68c0102aa6 Portability improvements. 2001-08-07 19:19:29 +00:00
hpa
8c3d63fba8 Support running without inetd. 2001-08-07 00:27:52 +00:00
hpa
266427bc5b Portability improvements. Now compiles and works on Solaris 8, as well
as Linux.
2001-08-03 03:17:57 +00:00
hpa
32b1e62a8c "Access denied" in TFTP is "EACCESS" not "EACCES". Bleargh. 2001-07-26 22:49:04 +00:00
hpa
304cb0877c Quiet final set of warnings. 2001-07-21 02:02:43 +00:00
hpa
4bcf957aaf Quiet warnings. 2001-07-21 01:49:04 +00:00
hpa
b9ca0ec54b Get rid of an "incompatible pointer type" warning. 2001-07-21 01:43:01 +00:00
hpa
81822ea738 Fork before performing tcpwrappers check.
Don't rely on nonstandard bsd_signal() function, instead
 require that the platform has sigaction().  This is 2001,
 after all.  This may resolve some potential portability
 problems.

Log a message if memory allocation fails, instead of dying silently.

Clean up the main dispatch loop.

Use <sysexits.h> for exit codes, if it exists.

Reformat tftpd.c to match the other files.
2001-07-20 06:59:54 +00:00
hpa
3fa5d9d604 Move client/filename logging so that it happens even on a file not found 2001-07-10 22:05:21 +00:00
hpa
fc5f978d68 Add code to tftpd to exit cleanly (master only) on SIGHUP 2001-07-10 22:04:14 +00:00
hpa
3444b4d18c Fix compilation snafus; add note that mapping file changes require SIGHUP. 2001-07-10 21:52:44 +00:00
hpa
acf458d957 Add documentation for matching options; more verbose logging. 2001-07-10 21:48:08 +00:00
hpa
428ecab386 Actually integrate the regex rewriting stuff 2001-07-10 06:14:20 +00:00
hpa
20271a4c87 Initial step in integrating regex-based rewrite engine. 2001-07-10 04:52:06 +00:00
hpa
4d0dd611ae Document new options and new configuration setup. 2001-04-23 22:50:47 +00:00
hpa
a00187d331 Actually make the tcpwrapper code work as advertised! 2001-04-23 22:02:02 +00:00
hpa
87eda11da8 Fix handling of dropped privileges; broken support for libwrap. 2001-04-23 21:22:17 +00:00
hpa
849efd27b3 *** empty log message *** 2001-04-23 19:59:47 +00:00
hpa
c92bf0f3d4 More merging mania... 2001-03-30 01:30:49 +00:00
hpa
0ba1a99f5d Fix major lossage: 0.15 got based on an outdated repository!!! 2001-03-30 01:07:52 +00:00
hpa
ffa45eae76 Add code to always reply using the queried IP address, if the OS
makes it possible.
2001-03-28 18:24:25 +00:00
hpa
a24840a364 Fix handling of blksize_set flag. 1999-09-26 07:12:54 +00:00
hpa
a77729cb7e *** empty log message *** 1999-09-26 07:11:27 +00:00
hpa
50f08ba7cf Start work on blksize2 option 1999-09-26 07:05:58 +00:00
hpa
09f975fa4c Initial revision 1999-09-26 06:32:41 +00:00