From: John Crispin Date: Mon, 7 Apr 2014 10:53:59 +0000 (+0100) Subject: jffs2mark did not check the return code properly X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9466c44c60dc25a9b5860e7630b25bf7a8c83f0c;p=oweals%2Ffstools.git jffs2mark did not check the return code properly Signed-off-by: John Crispin --- diff --git a/jffs2reset.c b/jffs2reset.c index 0673982..122e03b 100644 --- a/jffs2reset.c +++ b/jffs2reset.c @@ -124,7 +124,7 @@ jffs2_mark(int argc, char **argv) sz = write(fd, &deadc0de, sizeof(deadc0de)); close(fd); - if (sz != 1) { + if (sz != 4) { fprintf(stderr, "writing %s failed: %s\n", v->blk, strerror(errno)); return -1; }