]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nandtool: Add missing mode for open() with O_CREAT
authorjilles <jilles@FreeBSD.org>
Tue, 26 Dec 2017 16:20:38 +0000 (16:20 +0000)
committerjilles <jilles@FreeBSD.org>
Tue, 26 Dec 2017 16:20:38 +0000 (16:20 +0000)
commit643c4b60a850527badbf7b71447eb3c773b85d4d
treebe1037a25f387d65774b99d9c623025c224d1cbb
parentec6ed33713c3cb790a5916650af9fe19b796a848
nandtool: Add missing mode for open() with O_CREAT

If O_CREAT is given, open() needs a mode argument. Follow the umask by
passing 0666.

Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D13607
usr.sbin/nandtool/nand_read.c
usr.sbin/nandtool/nand_readoob.c