Discussion:
tftp client
LÉVAI Dániel
2009-03-23 07:14:31 UTC
Permalink
Hi!

I've noticed that if I want to use the tftp client with directories in the
remote path, it doesn't even try to connect, it fails instantly with:
tftp: can't open 'image/fdisk_template': No such file or directory

Is this a feature?

Thanks!

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Vladimir Dronnikov
2009-03-23 16:47:48 UTC
Permalink
Hi!

Let's start with exact cmdline you use, Daniel.

--
Vladimir
LÉVAI Dániel
2009-03-24 07:06:52 UTC
Permalink
Post by Vladimir Dronnikov
Hi!
Let's start with exact cmdline you use, Daniel.
Alright mate, sorry :)

I'm trying to get the fdisk_template file from this tree:

tftpboot/
tftpboot/lib/
tftpboot/lib/fdisk_template

with this command:

$ busybox tftp -g -r lib/fdisk_template localhost
or with this:
$ busybox tftp -g -r /lib/fdisk_template localhost

I get this error on the client side (respectively):
tftp: can't open 'lib/fdisk_template': No such file or directory
and
tftp: can't open '/lib/fdisk_template': No such file or directory

But watching the log on the server side, it seems that busybox's tftp client
won't try to connect in either case.
If I place the file outside of the subdirectory (ie. directly to the
tftpboot), the client fetches the file without a problem.

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Vladimir Dronnikov
2009-03-24 07:54:11 UTC
Permalink
Post by LÉVAI Dániel
tftpboot/
tftpboot/lib/
tftpboot/lib/fdisk_template
$ busybox tftp -g -r lib/fdisk_template localhost
$ busybox tftp -g -r /lib/fdisk_template localhost
What is your tftpd server and how do you run it?

--
Vladimir
LÉVAI Dániel
2009-03-24 08:00:23 UTC
Permalink
Post by Vladimir Dronnikov
Post by LÉVAI Dániel
tftpboot/
tftpboot/lib/
tftpboot/lib/fdisk_template
$ busybox tftp -g -r lib/fdisk_template localhost
$ busybox tftp -g -r /lib/fdisk_template localhost
What is your tftpd server and how do you run it?
I'm using HPA's tftpd. It runs from inetd, and the command is this:
"/usr/sbin/tcpd /usr/sbin/in.tftpd -v -s /var/lib/tftpboot"

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Vladimir Dronnikov
2009-03-24 08:12:15 UTC
Permalink
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
What is your tftpd server and how do you run it?
"/usr/sbin/tcpd /usr/sbin/in.tftpd -v -s /var/lib/tftpboot"
I guess HPA's tftpd doesn't support for hierarchy. BB's one just
chdir()s to its root and then serves files regardless of their names
(except dots are not allowed in filenames). So yes, it is the feature
(by security reasons, I guess) of HPA's tftpd.

You can try to use BB's tftpd -- it also is started via inetd. If you
will, please, mail the results.

Regards,
--
Vladimir
LÉVAI Dániel
2009-03-24 08:24:21 UTC
Permalink
Post by Vladimir Dronnikov
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
What is your tftpd server and how do you run it?
"/usr/sbin/tcpd /usr/sbin/in.tftpd -v -s /var/lib/tftpboot"
I guess HPA's tftpd doesn't support for hierarchy. BB's one just
chdir()s to its root and then serves files regardless of their names
(except dots are not allowed in filenames). So yes, it is the feature
(by security reasons, I guess) of HPA's tftpd.
You can try to use BB's tftpd -- it also is started via inetd. If you
will, please, mail the results.
I have the problem with client, not the server.
Unfortunately, I forgot to include the information that with other tftp
clients, I can fetch the file from the subdirectory using HPA's tftpd, eg.:

HPA's tftp client:
$ tftp -4 -v localhost -c get lib/fdisk_template
Connected to localhost (127.0.0.1), port 69
getting from localhost:lib/fdisk_template to fdisk_template [netascii]
Received 126 bytes in 0.1 seconds [17299 bit/s]
$ ls -l fdisk_template
-rw-r----- 1 daniell daniell 90 2009-03-24 09.18.57 fdisk_template


netkit-tftp client:
$ ./tftp localhost
tftp> get lib/fdisk_template
Received 126 bytes in 0.0 seconds
tftp> quit
$ ls -l fdisk_template
-rw-r----- 1 daniell daniell 90 2009-03-24 09.20.52 fdisk_template


BB tftp client:
$ busybox tftp -g -r lib/fdisk_template localhost
tftp: can't open 'lib/fdisk_template': No such file or directory

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Vladimir Dronnikov
2009-03-24 08:42:03 UTC
Permalink
Post by LÉVAI Dániel
I have the problem with client, not the server.
Post here strace log:
$ strace -o log -f -v -s1024 busybox tftp -g -r lib/fdisk_template localhost

BTW, what is BB version?

--
Vladimir
LÉVAI Dániel
2009-03-24 09:06:26 UTC
Permalink
Post by Vladimir Dronnikov
Post by LÉVAI Dániel
I have the problem with client, not the server.
$ strace -o log -f -v -s1024 busybox tftp -g -r lib/fdisk_template localhost
Attached or inline?
Post by Vladimir Dronnikov
BTW, what is BB version?
$ svn info
Path: .
URL: svn://busybox.net/branches/busybox_1_13_stable
Repository Root: svn://busybox.net
Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
Revision: 25672
Node Kind: directory
Schedule: normal
Last Changed Author: vda
Last Changed Rev: 25519
Last Changed Date: 2009-03-04 02:33:22 +0100 (sze, 04 m?rc 2009)

I admit, it is a bit old.

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Vladimir Dronnikov
2009-03-24 09:12:02 UTC
Permalink
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
$ strace -o log -f -v -s1024 busybox tftp -g -r lib/fdisk_template localhost
Attached or inline?
Doesn't matter. Post attached.

--
Vladimir
LÉVAI Dániel
2009-03-24 09:18:34 UTC
Permalink
Post by Vladimir Dronnikov
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
$ strace -o log -f -v -s1024 busybox tftp -g -r lib/fdisk_template localhost
Attached or inline?
Doesn't matter. Post attached.
Ok.

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
-------------- next part --------------
9156 execve("./busybox", ["./busybox", "tftp", "-g", "-r", "lib/fdisk_template", "localhost"], ["_=/usr/bin/strace", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LC_ADDRESS=hu_HU.UTF-8", "KDE_USE_IPV6=no", "PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/home/daniell/bin", "HUSHLOGIN=FALSE", "SHELL=/bin/ksh", "EDITOR=vi", "KDE_SESSION_UID=1000", "USER=daniell", "LC_PAPER=hu_HU.UTF-8", "VISUAL=vi", "PERL_BADLANG=0", "WINDOWPATH=7", "KDE_FULL_SESSION=true", "GTK_RC_FILES=/etc/gtk/gtkrc:/home/daniell/.gtkrc:/home/daniell/.kde/share/config/gtkrc", "GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/daniell/.gtkrc-2.0:/home/daniell/.kde/share/config/gtkrc-2.0", "LC_COLLATE=hu_HU.UTF-8", "TERM=xterm", "XAUTHORITY=/home/daniell/.Xauthority", "COLORTERM=", "XCURSOR_THEME=oxy-white", "KDE_MULTIHEAD=false", "KONSOLE_DCOP=DCOPRef(konsole-9134,konsole)", "LANG=en_US.UTF-8", "LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.7z=01;31:*.lzh=01;31:*.zip=01;31:*.rar=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.avi=00;35:*.fli=00;35:*.gl=01;35:*.dl=01;35:*.xcf=00;35:*.xwd=00;35:*.flac=00;35:*.mp3=00;35:*.mpc=00;35:*.ogg=00;35:*.wav=00;35:", "ENV=~/.kshrc", "LOGNAME=daniell", "LC_NAME=hu_HU.UTF-8", "SESSION_MANAGER=local/digidani:@/tmp/.ICE-unix/3303,unix/digidani:/tmp/.ICE-unix/3303", "LC_MESSAGES=en_US.UTF-8", "LC_CTYPE=hu_HU.UTF-8", "LC_TIME=hu_HU.UTF-8", "MAIL=/var/mail/daniell", "HOME=/home/daniell", "DISPLAY=:0.0", "PWD=/home/daniell/Documents/nas/installer/initrd/bin", "LC_IDENTIFICATION=hu_HU.UTF-8", "LESSOPEN=| /usr/bin/lesspipe %s", "LC_TELEPHONE=hu_HU.UTF-8", "LC_MONETARY=hu_HU.UTF-8", "LC_MEASUREMENT=hu_HU.UTF-8", "WINDOWID=58720264", "SHLVL=4", "LC_NUMERIC=hu_HU.UTF-8", "LANGUAGE=en_US.UTF-8", "GS_LIB=/home/daniell/.fonts"]) = 0
9156 uname({sysname="Linux", nodename="digidani", release="2.6.26-1-686", version="#1 SMP Sat Jan 10 18:29:31 UTC 2009", machine="i686"}) = 0
9156 brk(0) = 0x9d3b000
9156 brk(0x9d3bcd0) = 0x9d3bcd0
9156 set_thread_area({entry_number:-1 -> 6, base_addr:0x9d3b850, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
9156 open("/dev/urandom", O_RDONLY) = 3
9156 read(3, "\v\307\356P"..., 4) = 4
9156 close(3) = 0
9156 brk(0x9d5ccd0) = 0x9d5ccd0
9156 brk(0x9d5d000) = 0x9d5d000
9156 getpid() = 9156
9156 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
9156 fstat64(3, {st_dev=makedev(8, 6), st_ino=323809, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=4840, st_size=2543136, st_atime=2009/03/16-11:30:39, st_mtime=2009/03/16-11:30:42, st_ctime=2009/03/16-11:30:42}) = 0
9156 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7dc0000
9156 mmap2(NULL, 970752, PROT_READ, MAP_PRIVATE, 3, 0x180) = 0xb7cd3000
9156 close(3) = 0
9156 socket(PF_NETLINK, SOCK_RAW, 0) = 3
9156 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
9156 getsockname(3, {sa_family=AF_NETLINK, pid=9156, groups=00000000}, [12]) = 0
9156 time(NULL) = 1237884741
9156 sendto(3, "\24\0\0\0\26\0\1\3E\237\310I\0\0\0\0\0\0\0\0"..., 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
9156 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0E\237\310I\304#\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1\10\0\2\0\177\0\0\1\7\0\3\0lo\0\0<\0\0\0\24\0\2\0E\237\310I\304#\0\0\2\30\200\0\2\0\0\0\10\0\1\0\300\250\310\1\10\0\2\0\300\250\310\1\10\0\4\0\300\250\310\377\t\0\3\0eth0\0\0\0\0<\0\0\0\24\0\2\0E\237\310I\304#\0\0\2\30\200\0\4\0\0\0\10\0\1\0\300\250\1\275\10\0\2\0\300\250\1\275\10\0\4\0\300\250\1\377\n\0\3\0wlan0\0\0\0004\0\0\0\24\0\2\0E\237\310I\304#\0\0\2 \200\0\6\0\0\0\10\0\1\0\n\1\1E\10\0\2\0\n\1\1F\t\0\3\0tun0\0\0\0\0<\0\0\0\24\0\2\0E\237\310I\304#\0\0\2\31\200\0\7\0\0\0\10\0\1\0N\203N\325\10\0\2\0N\203N\325\10\0\4\0N\203N\377\t\0\3\0tap0\0\0\0\0\0\0\0\0\0\0\0\0\0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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 280
9156 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\24\0\6\0\377\377\377\377\377\377\377\3770\4\0\0000\4\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\2\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\26A\377\376\252\322p\24\0\6\0\377\377\377\377\377\377\377\3770\4\0\0000\4\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\4\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\30\336\377\376e-7\24\0\6\0\377\377\377\377\377\377\377\3777\v\0\0007\v\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\7\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\377{\377\376\336\274\30\24\0\6\0\377\377\377\377\377\377\377\377\\\20\0\0\\\20\0\0N\203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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 256
9156 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0E\237\310I\304#\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\24\0\6\0\377\377\377\377\377\377\377\3770\4\0\0000\4\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\2\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\26A\377\376\252\322p\24\0\6\0\377\377\377\377\377\377\377\3770\4\0\0000\4\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\4\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\30\336\377\376e-7\24\0\6\0\377\377\377\377\377\377\377\3777\v\0\0007\v\0\0@\0\0\0\24\0\2\0E\237\310I\304#\0\0\n@\200\375\7\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\2\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0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
9156 close(3) = 0
9156 socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = -1 EINVAL (Invalid argument)
9156 socket(PF_FILE, SOCK_STREAM, 0) = 3
9156 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
9156 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
9156 close(3) = 0
9156 socket(PF_FILE, SOCK_STREAM, 0) = 3
9156 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
9156 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
9156 close(3) = 0
9156 open("/etc/nsswitch.conf", O_RDONLY) = 3
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=5231, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=513, st_atime=2009/03/02-10:49:02, st_mtime=2009/03/02-10:49:02, st_ctime=2009/03/02-10:49:02}) = 0
9156 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd2000
9156 read(3, "# /etc/nsswitch.conf\n#\n# Example configuration of GNU Name Service Switch functionality.\n# If you have the `glibc-doc-reference' and `info' packages installed, try:\n# `info libc \"Name Service Switch\"' for information about this file.\n\npasswd: compat\ngroup: compat\nshadow: compat\n\nhosts: files mdns4_minimal [NOTFOUND=return] dns mdns4\nnetworks: files\n\nprotocols: db files\nservices: db files\nethers: db files\nrpc: db files\n\nnetgroup: nis\n"..., 4096) = 513
9156 read(3, ""..., 4096) = 0
9156 close(3) = 0
9156 munmap(0xb7cd2000, 4096) = 0
9156 open("/etc/host.conf", O_RDONLY) = 3
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=4179, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=9, st_atime=2006/08/07-19:14:09, st_mtime=2006/08/07-19:14:09, st_ctime=2009/03/02-10:21:35}) = 0
9156 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd2000
9156 read(3, "multi on\n"..., 4096) = 9
9156 read(3, ""..., 4096) = 0
9156 close(3) = 0
9156 munmap(0xb7cd2000, 4096) = 0
9156 open("/etc/resolv.conf", O_RDONLY) = 3
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=5051, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=84, st_atime=2009/03/24-07:50:11, st_mtime=2009/03/24-07:50:11, st_ctime=2009/03/24-07:50:11}) = 0
9156 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd2000
9156 read(3, "domain lan\nnameserver xxx.xxx.xxx.xxx\nnameserver xxx.xxx.xxx.xxx\n"..., 4096) = 84
9156 read(3, ""..., 4096) = 0
9156 close(3) = 0
9156 munmap(0xb7cd2000, 4096) = 0
9156 open("/etc/ld.so.cache", O_RDONLY) = 3
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=4126, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=120, st_size=59742, st_atime=2009/03/24-09:38:05, st_mtime=2009/03/24-09:38:05, st_ctime=2009/03/24-09:38:05}) = 0
9156 mmap2(NULL, 59742, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7cc4000
9156 close(3) = 0
9156 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
9156 open("/lib/libnss_files.so.2", O_RDONLY) = 3
9156 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\31\0\0004\0\0\0\250\221\0\0\0\0\0\0004\0 \0\10\0(\0\34\0\33\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\0\0\0\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0@\207\0\0@\207\0\0@\207\0\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\214\0\0\f\214\0\0\5\0\0\0\0\20\0\0\1\0\0\0\350\216\0\0\350\236\0\0\350\236\0\0\310\1\0\0\260\3\0\0\6\0\0\0\0\20\0\0\2\0\0\0\374\216\0\0\374\236\0\0\374\236\0\0\340\0\0\0\340\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0004\1\0\0004\1\0\0004\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0R\345td\350\216\0\0\350\236\0\0\350\236\0\0\30\1\0\0\30\1\0\0\4\0\0\0\1\0\0\0\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0\22\0\0\0k\0\0\0.\0\0\0\20\0\0\0\t\0\0\0\"F\340\24\260\241\245\1\31\10\200\20\203\6\212\10\0\0\222@]\1(\nx\10 \"\220\200\20,\5\1\204\4)!\0224\0\24\0\31\0\0\2\2\210@\0\200 at 0\210\201@@\200\0B\0\6\300.\0\0\0\0\0\0\0\0\0\0\0/\0\0\0000\0\0\0001\0\0\0002\0\0\0003\0\0\0\0\0\0\0004\0\0\0\0\0\0\0005\0\0\0007\0\0\0008\0\0\0\0\0\0\0:\0\0\0\0\0\0\0<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=5008, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=80, st_size=38408, st_atime=2009/03/16-11:24:04, st_mtime=2009/02/28-00:15:09, st_ctime=2009/03/16-11:25:58}) = 0
9156 mmap2(NULL, 41624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cb9000
9156 mmap2(0xb7cc2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7cc2000
9156 close(3) = 0
9156 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
9156 open("/lib/libc.so.6", O_RDONLY) = 3
9156 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320h\1\0004\0\0\0\254\367\23\0\0\0\0\0004\0 \0\n\0(\0G\0F\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0@\1\0\0@\1\0\0\5\0\0\0\4\0\0\0\3\0\0\0\0w\22\0\0w\22\0\0w\22\0\23\0\0\0\23\0\0\0\4\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0P\270\23\0P\270\23\0\5\0\0\0\0\20\0\0\1\0\0\0\340\301\23\0\340\301\23\0\340\301\23\0\234'\0\0pT\0\0\6\0\0\0\0\20\0\0\2\0\0\0|\335\23\0|\335\23\0|\335\23\0\360\0\0\0\360\0\0\0\6\0\0\0\4\0\0\0\4\0\0\0t\1\0\0t\1\0\0t\1\0\0 \0\0\0 \0\0\0\4\0\0\0\4\0\0\0\7\0\0\0\340\301\23\0\340\301\23\0\340\301\23\0\10\0\0\0@\0\0\0\4\0\0\0\4\0\0\0P\345td\24w\22\0\24w\22\0\24w\22\0\304+\0\0\304+\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0R\345td\340\301\23\0\340\301\23\0\340\301\23\0 \36\0\0 \36\0\0\4\0\0\0\1\0\0\0\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0\22\0\0\0\363\3\0\0\t\0\0\0\0\2\0\0\16\0\0\0\2400\20D\200 \2\1\214\3\346\220AE\210\0\204\0\10\0A\200\0@\300\200\0\f\2\f\0\0010\0\10@\"\10\246\4\210H6l\240\0260\0&\204\200\216\4\10B$\2\f\246\244\32\6c\310\0\302 \1\300\0R\0!\201\10\4\n \250\24\0\24(`\0\0P\240\312DB"..., 512) = 512
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=4998, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2568, st_size=1311428, st_atime=2009/03/16-11:24:04, st_mtime=2009/02/28-00:15:09, st_ctime=2009/03/16-11:25:58}) = 0
9156 mmap2(NULL, 1316432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b77000
9156 mmap2(0xb7cb3000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xb7cb3000
9156 mmap2(0xb7cb6000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7cb6000
9156 close(3) = 0
9156 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
9156 open("/lib/ld-linux.so.2", O_RDONLY) = 3
9156 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\10\0\0004\0\0\0\244\306\1\0\0\0\0\0004\0 \0\6\0(\0\30\0\27\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\263\1\0\10\263\1\0\5\0\0\0\0\20\0\0\1\0\0\0\240\274\1\0\240\314\1\0\240\314\1\0\30\t\0\0\314\t\0\0\6\0\0\0\0\20\0\0\2\0\0\0(\277\1\0(\317\1\0(\317\1\0\270\0\0\0\270\0\0\0\6\0\0\0\4\0\0\0P\345td`\255\1\0`\255\1\0`\255\1\0,\1\0\0,\1\0\0\4\0\0\0\4\0\0\0Q\345td\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\4\0\0\0R\345td\240\274\1\0\240\314\1\0\240\314\1\0`\3\0\0`\3\0\0\4\0\0\0\1\0\0\0\21\0\0\0\34\0\0\0\2\0\0\0\32\0\0\0\30\0\0\0\r\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\24\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\t\0\0\0\6\0\0\0\10\0\0\0\22\0\0\0\16\0\0\0\n\0\0\0\0\0\0\0\25\0\0\0\0\0\0\0\0\0\0\0\21\0\0\0\31\0\0\0\0\0\0\0\3\0\0\0\33\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\v\0\0\0\0\0\0\0\23\0\0\0\0\0\0\0\26\0\0\0\f\0\0\0\17\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\27\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\21\0\0\0\1\0\0\0\10\0\0\0\10\0\0\0\0\4@\0x`\0014\200\2\0D\r\5\200\0\200\10K\0\300\2\20\0\200D\340#\2\204L\0\1\0\0\0\2\0\0\0\3\0\0\0\5\0\0\0\0\0\0\0\7\0\0\0\n\0\0\0\v\0\0\0"..., 512) = 512
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=5006, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=232, st_size=117348, st_atime=2009/03/16-11:24:04, st_mtime=2009/02/28-00:15:09, st_ctime=2009/03/16-11:25:58}) = 0
9156 mmap2(NULL, 120428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b59000
9156 mmap2(0xb7b75000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xb7b75000
9156 close(3) = 0
9156 mprotect(0xb7b75000, 4096, PROT_READ) = 0
9156 mprotect(0xb7cb3000, 8192, PROT_READ) = 0
9156 mprotect(0xb7cc2000, 4096, PROT_READ) = 0
9156 munmap(0xb7cc4000, 59742) = 0
9156 mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7a59000
9156 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 3
9156 fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
9156 fstat64(3, {st_dev=makedev(8, 5), st_ino=5225, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=410, st_atime=2009/03/02-10:22:59, st_mtime=2009/03/13-10:05:16, st_ctime=2009/03/13-10:05:16}) = 0
9156 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd2000
9156 read(3, "127.0.0.1\tlocalhost\n127.0.1.1\txxx.xxx.xxx.hu\tdigidani\n\nxxx.xxx.xxx.xxx\txxx.xxx.xxx.hu\tnasteszt nastest\n\nxxx.xxx.xxx.xxx\txxx\n\nxxx.xxx.xxx.xxx\txxx xxx\nxxx.xxx.xxx.xxx\txxx\n\n# The following lines are desirable for IPv6 capable hosts\n::1 localhost ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3 ip6-allhosts\n"..., 4096) = 410
9156 close(3) = 0
9156 munmap(0xb7cd2000, 4096) = 0
9156 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
9156 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
9156 open("lib/fdisk_template", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/locale.alias", O_RDONLY) = 4
9156 fstat64(4, {st_dev=makedev(8, 5), st_ino=4991, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2570, st_atime=2009/03/16-11:24:04, st_mtime=2009/02/27-20:05:27, st_ctime=2009/03/16-11:30:36}) = 0
9156 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cd2000
9156 read(4, "# Locale name alias data base.\n# Copyright (C) 1996-2001,2003,2007 Free Software Foundation, Inc.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2, or (at your option)\n# any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n\n# The format of this file is the same as for the corresponding file of\n# the X Window System, which normally can be found in\n#\t/usr/lib/X11/locale/locale.alias\n# A single line contains two fields: an alias and a substitution value.\n# All "..., 4096) = 2570
9156 read(4, ""..., 4096) = 0
9156 close(4) = 0
9156 munmap(0xb7cd2000, 4096) = 0
9156 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
9156 write(2, "tftp: can't open 'lib/fdisk_template': No such file or directory\n"..., 65) = 65
9156 exit_group(1) = ?
Sergio
2009-03-24 09:26:58 UTC
Permalink
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
Hi!
Let's start with exact cmdline you use, Daniel.
Alright mate, sorry :)
tftpboot/
tftpboot/lib/
tftpboot/lib/fdisk_template
$ busybox tftp -g -r lib/fdisk_template localhost
$ busybox tftp -g -r /lib/fdisk_template localhost
Hi,

I think you have to specify the -l option too.

Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template

Bye
Sergio
--
Free software is a matter of liberty, not price. To understand the concept,
you should think of free as in free speech, not as in free beer
- Richard Stallman

http://www.gnu.org/philosophy/free-sw.html
Vladimir Dronnikov
2009-03-24 09:37:26 UTC
Permalink
Post by Sergio
I think you have to specify the -l option too.
Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template
Right.

strace reads:
---
9156 open("lib/fdisk_template", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,
0666) = -1 ENOENT (No such file or directory)
---
so tftp tries create local file with respect to remote hierarchy. I
think it is a bug.

--
Vladimir
LÉVAI Dániel
2009-03-24 09:56:32 UTC
Permalink
Post by Vladimir Dronnikov
Post by Sergio
I think you have to specify the -l option too.
Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template
Right.
Absolutely! (Although, I can't find that post on the list) Nevertheless, it is
working with the "-l" option.

Thanks!
Post by Vladimir Dronnikov
---
9156 open("lib/fdisk_template", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,
0666) = -1 ENOENT (No such file or directory)
---
so tftp tries create local file with respect to remote hierarchy. I
think it is a bug.
Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Denys Vlasenko
2009-03-25 03:54:30 UTC
Permalink
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
Post by Sergio
I think you have to specify the -l option too.
Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template
Right.
Absolutely! (Although, I can't find that post on the list) Nevertheless, it is
working with the "-l" option.
Thanks!
Pleae try this patch. With it, it should work without -l.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.patch
Type: text/x-diff
Size: 645 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090325/f6d445f1/attachment.bin>
LÉVAI Dániel
2009-03-25 07:46:33 UTC
Permalink
Post by Denys Vlasenko
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
Post by Sergio
I think you have to specify the -l option too.
Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template
Right.
Absolutely! (Although, I can't find that post on the list) Nevertheless,
it is working with the "-l" option.
Thanks!
Pleae try this patch. With it, it should work without -l.
Thanks, perfect!

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
LÉVAI Dániel
2009-03-25 08:29:26 UTC
Permalink
Post by LÉVAI Dániel
Post by Denys Vlasenko
Post by LÉVAI Dániel
Post by Vladimir Dronnikov
Post by Sergio
I think you have to specify the -l option too.
Try with
busybox tftp -g -r lib/fdisk_template localhost -l fdisk_template
Right.
Absolutely! (Although, I can't find that post on the list)
Nevertheless, it is working with the "-l" option.
Thanks!
Pleae try this patch. With it, it should work without -l.
Thanks, perfect!
BTW, will this be committed to 1_13_stable svn?

Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Continue reading on narkive:
Loading...