summaryrefslogtreecommitdiff
path: root/nandwrite.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-07-01 09:12:43 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-07-01 09:12:43 +0300
commit2bd7447e96e1c6cf8637713f9cbcec51b05e5aa1 (patch)
treebb6795c6f21ba69e639d1db84489595c386dcfcc /nandwrite.c
parente77565ee458a7d6863f8434a97156a66547f2b98 (diff)
nandwrite: amendment to Mike's --input-* series
This is a delta between v1 and v2 of the patches. I pushed v1 instead of picking v2, and this is a fixup. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'nandwrite.c')
-rw-r--r--nandwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nandwrite.c b/nandwrite.c
index 70579a3..9c3fe8f 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -315,7 +315,7 @@ int main(int argc, char * const argv[])
if (ifd == STDIN_FILENO) {
imglen = inputsize ? : pagelen;
if (inputskip) {
- errmsg("seeking stdin does not work");
+ errmsg("seeking stdin not supported");
goto closeall;
}
} else {
@@ -325,7 +325,7 @@ int main(int argc, char * const argv[])
sys_errmsg("unable to stat input image");
goto closeall;
}
- imglen = st.st_size;
+ imglen = st.st_size - inputskip;
} else
imglen = inputsize;