diff options
author | Theodore Ts'o <tytso@mit.edu> | 2022-08-11 23:14:33 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-08-11 23:14:33 -0400 |
commit | e8b05eb89c75b50876ffc9e23b17811bc429fe19 (patch) | |
tree | 1a05fa634289becfc66560ac6cddf751efd5aa3a /e2fsck/pass3.c | |
parent | 45dc484a25f234722f6b0fe4f8fc12080429a1dd (diff) | |
download | e2fsprogs-e8b05eb89c75b50876ffc9e23b17811bc429fe19.tar.gz |
e2fsck: mark that we don't care about the return value of e2fsck_lookup()
We only print the parent directory to help provide context to the
user, but it's possible that a corrupted directory doesn't have a '..'
link.
Addresses-Coverity-Bug: 1507762
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r-- | e2fsck/pass3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c index d6b8c8b4..16d243f6 100644 --- a/e2fsck/pass3.c +++ b/e2fsck/pass3.c @@ -324,8 +324,8 @@ static int check_directory(e2fsck_t ctx, ext2_ino_t dir, if (parent) pctx->dir = parent; else - ext2fs_lookup(fs, ino, "..", 2, NULL, - &pctx->dir); + (void) ext2fs_lookup(fs, ino, "..", 2, NULL, + &pctx->dir); if (fix_problem(ctx, !parent ? PR_3_UNCONNECTED_DIR : PR_3_LOOPED_DIR, pctx)) { if (e2fsck_reconnect_file(ctx, pctx->ino)) { |