nandtool: Add missing mode for open() with O_CREAT
ClosedPublic

Authored by jilles on Sun, Dec 24, 3:09 PM.

Details

Summary

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

Test Plan

buildworld and installworld only

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jilles created this revision.Sun, Dec 24, 3:09 PM
imp accepted this revision.Sun, Dec 24, 4:41 PM
This revision is now accepted and ready to land.Sun, Dec 24, 4:41 PM
This revision was automatically updated to reflect the committed changes.