From: Artem Bityutskiy Date: Mon, 1 Jul 2013 06:12:43 +0000 (+0300) Subject: nandwrite: amendment to Mike's --input-* series X-Git-Tag: v1.5.1~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2bd7447e96e1c6cf8637713f9cbcec51b05e5aa1;p=mtd-utils.git 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 --- 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;