diff options
-rw-r--r-- | usr.bin/vi/common/exf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/vi/common/exf.c b/usr.bin/vi/common/exf.c index 0943febb5c3..94046cc8392 100644 --- a/usr.bin/vi/common/exf.c +++ b/usr.bin/vi/common/exf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exf.c,v 1.19 2003/08/01 16:47:25 pvalchev Exp $ */ +/* $OpenBSD: exf.c,v 1.20 2003/12/31 18:18:22 millert Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -150,7 +150,8 @@ file_init(sp, frp, rcv_name, flags) */ if (F_ISSET(frp, FR_RECOVER)) { F_CLR(frp, FR_RECOVER); - return (rcv_read(sp, frp)); + if (rcv_read(sp, frp) == 0) + return (0); /* successful recovery */ } /* |