51a09827dd
Config reload with SIGHUP.
2012-11-14 15:39:58 +01:00
ccfa43fcd5
We actually need this.
2012-11-14 15:39:51 +01:00
eb1f6b64cb
MAC address matching and stuff.
2012-11-14 15:10:39 +01:00
a3bba233cd
Basic dispatching.
2012-11-14 14:21:50 +01:00
6c1db01775
Get rid of client stuff.
2012-11-14 13:03:26 +01:00
35f574d160
Main server file.
2012-11-14 12:57:41 +01:00
e814174d7b
Get rid of stupid shit.
2012-11-14 12:53:40 +01:00
Michael P. Soulier
3e0a967133
Removing trailing whitespace
2012-10-04 08:28:55 -04:00
Michael P. Soulier
47c0eda6d2
Merge remote branch 'micolous/master' into merge
2012-10-04 08:25:36 -04:00
Michael P. Soulier
b57e583798
Adding testcases for new file-like input and output
2012-09-30 22:07:20 -04:00
Michael P. Soulier
792e849d20
Merge remote branch 'jawschwa/master' into merge
2012-09-30 21:52:18 -04:00
Michael P. Soulier
6359c212cc
Fixing doc on website
2012-09-29 11:08:00 -04:00
Michael P. Soulier
51150aa03a
Fixing testcase for pre python 2.7
2012-09-29 08:12:39 -04:00
Michael Farrell
a78f0a6b29
raise ImportError when Python version is wrong instead of AssertionError
2012-08-07 14:19:15 +09:30
Michael Farrell
fed8461e4b
Improved version check so it is much cleaner, fix relative import issue with Python 2.5 not working
2012-08-07 14:10:37 +09:30
Jay Weisskopf
39b877258b
Allow file objects to be used for download output or upload input.
...
Objects are considered file-like if they have read() or write()
functions. If they do not, they are assumed to be strings to a local
path (existing behavior).
2012-05-03 01:24:25 -05:00
Fabian Knittel
83507c60ff
tftpy/TftpStates.py: fix security problem regarding path check
...
This patch fixes the request path check. It makes sure that requested paths
are _below_ the specified root directory.
2012-04-26 21:18:31 +02:00
Fabian Knittel
c52ea929bb
t/test.py: add unit test for insecure path access
...
The test currently fails, because the request path is improperly checked /
sanitised.
2012-04-26 21:18:14 +02:00
Fabian Knittel
a973612bd8
refactor TftpState: move server-specific stuff to TftpServerState
2012-04-26 20:53:59 +02:00
Fabian Knittel
017688d836
minor clean-up: remove duplicate dyn_file_func setting
...
`self.dyn_file_func` is currently set twice: Once in the base class and once in
the server child class. As it's only used in the non-server case, remove it
from the base class.
2012-04-26 20:53:06 +02:00
Michael Farrell
e8039dd715
improve the check on dyn_file_func of TftpServer
2012-04-12 10:34:35 +09:30
Michael Farrell
9cba3b98d8
allow TftpServer.root not to exist if a dyn_file_func is provided
2012-04-11 17:25:56 +09:30
Michael Farrell
2b879b34d6
allow running the script on python 3.0 - 3.2 (though unsure of compatibility)
2012-04-11 17:22:03 +09:30
Michael P. Soulier
05e56b66a4
Fixing issue #26 , with the server not creating the full path to the filename
...
being uploaded.
2012-03-10 21:20:01 -05:00
Michael P. Soulier
9b655fcaa1
Adding subdirectory support. Hopefully closes issue 25.
2011-09-01 09:35:45 -04:00
Michael P. Soulier
6ab5ea47e8
Documentation update for 0.6.0
2011-07-26 03:43:00 -04:00
Michael P. Soulier
64478a31a6
Makefile update, and adding rpm specfile.
2011-07-26 03:32:33 -04:00
Michael P. Soulier
a5a42a3cc4
Updating metadata for 0.6.0 release.
2011-07-24 19:10:34 -04:00
Michael P. Soulier
04aaa2ef9f
Fixing issue #3 , expanding unit tests.
2011-07-24 17:37:16 -04:00
Michael P. Soulier
40977c6f74
Fixing some pyflakes complaints
2011-07-23 23:28:45 -04:00
Michael P. Soulier
add444006c
Fixes issue #23 , breaking up TftpStates into TftpStates and TftpContexts.
2011-07-23 23:20:53 -04:00
Michael P. Soulier
949c998648
Fixing issue #9 , removing blksize option from client if not supplied.
2011-07-23 20:29:06 -04:00
Michael P. Soulier
a43773e26c
Fixing issue #16 on github, server failing to use timeout time in
...
checkTimeout() method.
2011-07-23 20:05:03 -04:00
Michael P. Soulier
1e74abf010
Adding retries on timeouts, still have to exhaustively test.
...
Should close issue #21 on github.
2011-07-23 19:40:53 -04:00
Michael P. Soulier
6fd9391ad8
Fixing a file descriptor leak. Closes issue 22.
2011-06-02 22:31:55 -04:00
Michael P. Soulier
f6442eb4e4
Adding a server download state test to the unit tests.
2011-06-02 22:26:45 -04:00
Kenny Millington
a6cff4f0b2
Fix exceptions propagating out of TftpServer.listen()
...
Signed-off-by: Michael P. Soulier <msoulier@digitaltorque.ca>
2010-10-22 20:33:23 -04:00
Kenny Millington
71d827dd89
Allow dyn_file_func to trigger a FileNotFound error.
...
Signed-off-by: Michael P. Soulier <msoulier@digitaltorque.ca>
2010-10-22 20:33:05 -04:00
Michael P. Soulier
4396124b8d
Forcing decode mode to lower case, fixes bug 17.
2010-10-13 18:46:29 -04:00
Michael P. Soulier
45185ed44c
Fixing setNextBlock to roll over at 2**16 - 1 instead of 2**16, which was
...
causing problems when uploading large files.
Thanks to LawrenceK for the bug report. Fixes issue15.
2010-07-20 15:41:15 -04:00
Michael P. Soulier
e1b1be2107
Updating README for 0.5.1
2010-07-14 13:36:58 -04:00
Michael P. Soulier
4f61f7faac
Updated changelog for 0.5.1.
2010-07-14 13:29:57 -04:00
Michael P. Soulier
e35cd2d60c
Added simple doc examples and install info.
2010-07-14 13:28:53 -04:00
Michael P. Soulier
74f6756671
Playing with sphinx formatting
2010-07-12 05:46:16 -04:00
Michael P. Soulier
1caa220a9a
Latest doc updates
2010-07-11 21:19:01 -04:00
Michael P. Soulier
ad94976895
Replacing epydoc output on website.
2010-07-11 19:34:39 -04:00
Michael P. Soulier
402b2ae4c4
Adding initial Sphinx docs
2010-07-11 19:27:49 -04:00
Michael P. Soulier
0b5406865a
Fixing typo in unit test
2010-05-25 21:53:30 -04:00
Michael P. Soulier
58623df7d0
Adding support for input/output as stdin/stdout
2010-05-25 21:51:07 -04:00
Michael P. Soulier
f4a3ff6356
Fixing failure to set default blocksize if options were provided but blksize
...
was not one of them.
2010-05-24 08:25:49 -04:00