From 2bd7447e96e1c6cf8637713f9cbcec51b05e5aa1 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 1 Jul 2013 09:12:43 +0300 Subject: 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 --- nandwrite.c | 4 ++-- 1 file 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; -- cgit v1.2.3