Whamcloud - gitweb
libext2fs: explicitly ignore a possible unlink failure in ext2fs_free_icount
authorTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jun 2018 18:32:15 +0000 (14:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jun 2018 18:32:15 +0000 (14:32 -0400)
There's not much we can do if the unlink of the tdb file fails, and we
don't want to print a warning message from a library.

Fixes-Coverity-Bug: 1308364
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/icount.c

index d7de19f..888a90b 100644 (file)
@@ -89,7 +89,7 @@ void ext2fs_free_icount(ext2_icount_t icount)
        if (icount->tdb)
                tdb_close(icount->tdb);
        if (icount->tdb_fn) {
-               unlink(icount->tdb_fn);
+               (void) unlink(icount->tdb_fn);
                free(icount->tdb_fn);
        }
 #endif