VirtualBox

Changeset 5295 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Oct 15, 2007 1:17:45 PM (17 years ago)
Author:
vboxsync
Message:

Small fix to the NAT TFTP server: don't insist on "absolute" boot file
names. They will be prefixed by the TFTP root directory anyway, so no
need for that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tftp.c

    r1076 r5295  
    314314  /* do sanity checks on the filename */
    315315
    316   if ((spt->filename[0] != '/')
     316  if (   !strncmp(spt->filename, "../", 3)
    317317      || (spt->filename[strlen((const char *)spt->filename) - 1] == '/')
    318318      ||  strstr((char *)spt->filename, "/../")) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette