From f79fd97adf566646bd73f227696f9df52e383d41 Mon Sep 17 00:00:00 2001 From: halex Date: Tue, 24 Dec 2013 00:18:46 +0000 Subject: [PATCH] fix error checking oddity in msdosfs code, as noted by kettenis@ ok mikeb@ espie@ --- sys/msdosfs/msdosfs_denode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c index 77fa17d4117..34852d96c3b 100644 --- a/sys/msdosfs/msdosfs_denode.c +++ b/sys/msdosfs/msdosfs_denode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_denode.c,v 1.46 2013/10/01 20:22:13 sf Exp $ */ +/* $OpenBSD: msdosfs_denode.c,v 1.47 2013/12/24 00:18:46 halex Exp $ */ /* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */ /*- @@ -312,7 +312,7 @@ retry: if (error == E2BIG) { ldep->de_FileSize = de_cn2off(pmp, size); error = 0; - } else { + } else if (error) { printf("deget(): pcbmap returned %d\n", error); return (error); } -- 2.20.1