Created attachment 5696 [details] Patch to sed.c to fix this On busybox 1.22: $ rm -f foo.txt; ./busybox sed -i 's/hello/world/' foo.txt ; ls -l foo.txt sed: foo.txt: No such file or directory ---S--Srwt 1 nick nick 0 Sep 30 15:19 foo.txt Problem is caused by editors/sed.c not checking the result of fstat() to get the permissions of the input file. It then uses an uninitialised struct stat to set the permissions on the output file. Patch attached which fixes the issue for us.
Fixed in git, thanks!