From: levin li <[email protected]>
Signed-off-by: levin li <[email protected]> --- sheep/journal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sheep/journal.c b/sheep/journal.c index 646879c..e6946e9 100644 --- a/sheep/journal.c +++ b/sheep/journal.c @@ -275,7 +275,7 @@ int jrnl_recover(const char *jrnl_dir) goto end_while_2; jd.target_fd = open(jd.head.target_path, O_DSYNC | O_RDWR); - if (ret) { + if (jd.target_fd < 0) { eprintf("unable to open the object file %s for recovery\n", jd.head.target_path); goto end_while_2; -- 1.7.1 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
