Bug 1021 - TFTPd fails to upload a file with *** invalid open64 call: O_CREAT without mode ***: tftpd terminated
Summary: TFTPd fails to upload a file with *** invalid open64 call: O_CREAT without mo...
Status: VERIFIED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.15.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-02-01 21:57 UTC by Mike Matera
Modified: 2010-02-22 18:45 UTC (History)
1 user (show)

See Also:
Host:
Target: ubuntu-linux-x86_64
Build:


Attachments
Patch to fixe the problem. (572 bytes, patch)
2010-02-01 21:57 UTC, Mike Matera
Details

Note You need to log in before you can comment on or make changes to this bug.
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.