diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-14 17:30:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-14 17:30:04 +0200 |
commit | 604499e5a93d8055a761e968b12d6a0907bc3d0a (patch) | |
tree | 1175e19dc2d8941b4ef258187bb45f3e0cf4dab1 /miscutils | |
parent | bf146b861083e3170af05016982d50d297e3ace7 (diff) | |
parent | ac42e3de90ebf4b921035893e3670da63cad882c (diff) | |
download | busybox-w32-604499e5a93d8055a761e968b12d6a0907bc3d0a.tar.gz busybox-w32-604499e5a93d8055a761e968b12d6a0907bc3d0a.tar.bz2 busybox-w32-604499e5a93d8055a761e968b12d6a0907bc3d0a.zip |
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index 2ba6e3fe5..c636a5aa2 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
@@ -129,7 +129,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv) | |||
129 | xmove_fd(tmp_fd, IS_NANDDUMP ? STDOUT_FILENO : STDIN_FILENO); | 129 | xmove_fd(tmp_fd, IS_NANDDUMP ? STDOUT_FILENO : STDIN_FILENO); |
130 | } | 130 | } |
131 | 131 | ||
132 | fd = xopen(argv[0], O_RDWR); | 132 | fd = xopen(argv[0], IS_NANDWRITE ? O_RDWR : O_RDONLY); |
133 | xioctl(fd, MEMGETINFO, &meminfo); | 133 | xioctl(fd, MEMGETINFO, &meminfo); |
134 | 134 | ||
135 | mtdoffset = xstrtou(opt_s, 0); | 135 | mtdoffset = xstrtou(opt_s, 0); |