Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept None as TFTP root #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AndreasDa
Copy link

I rebased my former pull request off of the current master branch.

If None is given as tftproot upon tftpServer creation, the server always
forwards the file returned by its dyn_file_func method. This is useful if full
access to the file system should not be granted for the tftp client. The
client can still get files, but is restricted as appropriate by the
dyn_file_func method.

If tftproot and dyn_file_func are both None, an exception is raised.

If None is given as tftproot upon tftpServer creation, the server always
forwards the file returned by its dyn_file_func method. This is useful if full
access to the file system should not be granted for the tftp client. The
client can still get files, but is restricted as appropriate by the
dyn_file_func method.

If tftproot and dyn_fil_func are both None, a exception is raised
@msoulier
Copy link
Owner

Mostly looks fine, although

https://stackoverflow.com/questions/14247373/python-none-comparison-should-i-use-is-or

and we should have tests to exercise this.

@msoulier msoulier added the feedback needed Commented and awaiting feedback label Mar 22, 2019
@msoulier msoulier self-assigned this Oct 26, 2020
@twvd
Copy link

twvd commented May 17, 2021

Hi @msoulier, are you still maintaining this repository? I'd like to see this change merged, so if you're still working on this, shall I fix up this patch and create a new PR?

@msoulier
Copy link
Owner

@twvd Well I did ask a question that was not responded to, so I'm not sure why you're asking if I'm still working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback needed Commented and awaiting feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants