diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2013-12-24 00:18:47 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2013-12-24 00:18:47 +0000 |
commit | 4d467e8974d1f596ac6c77ae6466ff1278d9f297 (patch) | |
tree | 147851c77910fd07b250d56b30615275e996089c /sys/msdosfs | |
parent | 4c215f76c2ce844b044f0e49420dd6c70b426d8c (diff) |
fix error checking oddity in msdosfs code, as noted by kettenis@
ok mikeb@ espie@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_denode.c | 4 |
1 files 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); } |