Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0abe574
)
libext2fs: explicitly ignore a possible unlink failure in ext2fs_free_icount
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 24 Jun 2018 18:32:15 +0000
(14:32 -0400)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/lib/ext2fs/icount.c
b/lib/ext2fs/icount.c
index
d7de19f
..
888a90b
100644
(file)
--- a/
lib/ext2fs/icount.c
+++ b/
lib/ext2fs/icount.c
@@
-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