e2fsprogs/e2fsprogs-1.42-voidreturn_value_declared.patch

14 lines
447 B
Diff

--- lib/quota/quotaio.c.orig 2012-01-12 20:39:27.146300136 -0500
+++ lib/quota/quotaio.c 2012-01-12 20:39:41.591119555 -0500
@@ -142,8 +142,8 @@
return err;
inode.i_dtime = fs->now ? fs->now : time(0);
- if (!ext2fs_inode_has_valid_blocks2(fs, &inode))
- return;
+ if (!(err = ext2fs_inode_has_valid_blocks2(fs, &inode)) )
+ return err;
ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
release_blocks_proc, NULL);