From 9466c44c60dc25a9b5860e7630b25bf7a8c83f0c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 7 Apr 2014 11:53:59 +0100 Subject: [PATCH] jffs2mark did not check the return code properly Signed-off-by: John Crispin --- jffs2reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2