[Bug 1536] TFTP file system does not handle relative paths
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Wed Jun 2 01:17:35 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1536
Chris Johns <chrisj at rtems.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Johns <chrisj at rtems.org> 2010-06-01 20:17:35 ---
The TFTP file system code has been updated so you can have more than one
instance active at once. The mount command for the TFTP file system is:
mount -t tftpfs host:/dir /target
Where the host can be an IP address or host name. Currently the code uses
gethostbyname which is not reenterant. TFTP servers may allow an absolute path,
how-ever for security this is often rejected. You can handle both absolute and
relative paths. For an absolute path where all accesses must be under /tftpboot
on a server called 'server' use:
$ mount -t tftpfs server:/tftpboot /boot
To read a file called 'one' under /tftpboot on 'server' do:
$ cat /boot/one
For a relative path on 'rtems.org' of 'ftp' use:
$ mount -t tftpfs rtems.org:ftp /rtemsftp
To read a file called 'Welcome' you would:
$ cat /rtemsftp/Welcome
You can also reference the top of the TFTP path on a relative server with:
$ mount -t tftpfs server: /server
Note, no need for the path component.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list