fix error checking oddity in msdosfs code, as noted by kettenis@
authorhalex <halex@openbsd.org>
Tue, 24 Dec 2013 00:18:46 +0000 (00:18 +0000)
committerhalex <halex@openbsd.org>
Tue, 24 Dec 2013 00:18:46 +0000 (00:18 +0000)
ok mikeb@ espie@

sys/msdosfs/msdosfs_denode.c

index 77fa17d..34852d9 100644 (file)
@@ -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);
                        }