nanddump: make dumping read-only partitions work
authorMatt Reimer <mreimer@sdgsystems.com>
Wed, 30 May 2012 14:31:13 +0000 (10:31 -0400)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 13 Jun 2012 00:39:22 +0000 (02:39 +0200)
commit6979325592dd421ae4b02817ac8ac9ba5f362382
tree600d125df12860cb8e028e5a0c671dcb7ce5a222
parent772f17a8433b8572e1bf08b024fbf1f4e78395a3
nanddump: make dumping read-only partitions work

Make dumping read-only partitions work by opening the device
O_RDONLY; otherwise the open() will fail with -EPERM.

Signed-off-by: Matt Reimer <mreimer@sdgsystems.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/nandwrite.c