[PATCH] truncate: always set mode when opening file to avoid crash

Mike Frysinger vapier at gentoo.org
Wed Jan 13 18:33:27 UTC 2016


On 04 Jan 2016 15:40, Ari Sundholm wrote:
> +		int fd = open(*argv, flags, 0644);

i've used 0666 instead as that is what coreutils used.
the final permission depends on your umask like normal.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160113/80b290b5/attachment.asc>


More information about the busybox mailing list