Bug 1021

Summary: TFTPd fails to upload a file with *** invalid open64 call: O_CREAT without mode ***: tftpd terminated
Product: Busybox Reporter: Mike Matera <mike.matera>
Component: NetworkingAssignee: unassigned
Status: VERIFIED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5 Keywords: patch
Version: 1.15.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target: ubuntu-linux-x86_64
Build:
Attachments: Patch to fixe the problem.

Description Mike Matera 2010-02-01 21:57:24 UTC
Created attachment 1027 [details]
Patch to fixe the problem.

It seems that on 64bit libc you MUST specify the file mode in open.  Since tftpd fails to do this it cannot be used to upload a file in BusyBox.  I have created a patch that fixes the problem.  The patch applies mode '0666' to all uploaded files.  This might not be what people want, but I needed to get around the problem fast.

Thank you for BusyBox, it's amazing.
Comment 1 Denys Vlasenko 2010-02-02 00:02:58 UTC
Applied to git, thanks!
Comment 2 Denys Vlasenko 2010-02-21 01:03:06 UTC
Fix is at
http://busybox.net/downloads/fixes-1.16.0/busybox-1.16.0-tftp.patch
Comment 3 Mike Matera 2010-02-22 18:45:21 UTC
Awesome... I'm glad to help.