Bug 6248 - TFTP fetch-url inserts superflous slash in remote file
Summary: TFTP fetch-url inserts superflous slash in remote file
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.19.x
Hardware: All Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-11 18:43 UTC by Mathias Bogaert
Modified: 2013-05-26 11:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Bogaert 2013-05-11 18:43:56 UTC
The TFTP fetch-url script inserts a slash in front of the remote file. This breaks certain TFTP servers with 'access violation'. Since TFTP expects the path to start at root, the slash is not necessary and can be removed.

so the line 
> remote_file="/$(echo $url | cut -d/ -f 4-)"

should be 
> remote_file="$(echo $url | cut -d/ -f 4-)"
Comment 1 Denys Vlasenko 2013-05-11 23:30:10 UTC
(In reply to comment #0)
> The TFTP fetch-url script inserts a slash in front of the remote file.

What is "TFTP fetch-url script"? Where is it? I found nothing like this in busybox.
Comment 2 Mathias Bogaert 2013-05-12 10:02:02 UTC
Sorry, this bug should have been logged against debian-installer-utils. I thought that the script was part of busybox. Closing.
Comment 3 Mathias Bogaert 2013-05-26 11:02:12 UTC
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707955