Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Report a bug
2014-06-06, 06:23 (This post was last modified: 2014-06-06 06:23 by bleckers.)
Post: #5
RE: Report a bug
I had to modify the above to allow any other files to work (as the above will always remove the first character). This code will only remove a character if there is a preceding slash. This format still works with other tftp servers and allows WDS to work.

In tftp.c:
Code:
static int tftp_send_rrq ( struct tftp_request *tftp ) {
    const char *path;
    if ( strncmp (tftp->uri->path, "/", 1) == 0 ) {
        path = tftp->uri->path + 1;
    } else {
        path = tftp->uri->path;
    }

This is obviously a hacky fix, but it allows WDS to work with existing iPXE environments.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Report a bug - BloodFox - 2014-03-27, 09:36
RE: Report a bug - robinsmidsrod - 2014-04-18, 13:21
RE: Report a bug - BloodFox - 2014-04-19, 01:52
RE: Report a bug - bleckers - 2014-06-06, 04:00
RE: Report a bug - bleckers - 2014-06-06 06:23
RE: Report a bug - leandrolnh - 2014-07-28, 06:34



User(s) browsing this thread: 1 Guest(s)