]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nandtool: Add missing mode for open() with O_CREAT
authorJilles Tjoelker <jilles@FreeBSD.org>
Tue, 26 Dec 2017 16:20:38 +0000 (16:20 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Tue, 26 Dec 2017 16:20:38 +0000 (16:20 +0000)
commit2fe0ea732498348055db2ae0bca3e1b2d3eeeb47
treebe1037a25f387d65774b99d9c623025c224d1cbb
parentce3eafc4a5d3500547688da48585c08397ed3a6a
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