From: halex Date: Tue, 24 Dec 2013 00:18:46 +0000 (+0000) Subject: fix error checking oddity in msdosfs code, as noted by kettenis@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f79fd97adf566646bd73f227696f9df52e383d41;p=openbsd fix error checking oddity in msdosfs code, as noted by kettenis@ ok mikeb@ espie@ --- 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); }