This was invisible before because we were calling xopen(), which always passes mode 0 to open(). Now we're calling open() directly, bionic's _FORTIFY_SOURCE spots this.
Rather than create with 0600 and then chmod() later as the code used to do, move the stat() before the creation so we can supply the final permissions from the beginning. Also rewrite the default permissions in octal, in keeping with toybox style. --- toys/pending/vi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
0001-vi-don-t-call-open-with-O_CREAT-but-no-mode.patch
Description: Binary data
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net