[PATCH] tftp: introduce CONFIG_FEATURE_TFTP_UMASK

Peter Korsgaard peter at korsgaard.com
Tue Jun 11 08:36:25 UTC 2019


>>>>> "Markus" == Markus Mayer <mmayer at broadcom.com> writes:

 > On Sun, 9 Jun 2019 at 00:54, Denys Vlasenko <vda.linux at googlemail.com> wrote:
 >> 
 >> Imagining myself in the situation where I need to download
 >> executables over tftp, the first solution which comes to mind
 >> is to just chmod them after download.
 >> 
 >> Why that does not work for you?

 > I am working on a reference root file system that is used internally
 > and possibly also by customers. Unbeknownst to me, for years we had an
 > internal hack to TFTP that caused the TFTP client to apply execute
 > permissions to transferred files. Presumably this was a user request
 > at some point.

 > A recent root file system modernization did away with this TFTP
 > customization, which promptly triggered a regression being filed
 > against TFTP. Since I had to come up with a new way to apply our old
 > patch, I figured I'd share it with the community in case it is useful
 > to others.

Why not just add a shell script wrapper that does the chmod after tftp
get?

-- 
Bye, Peter Korsgaard


More information about the busybox mailing list