mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 06:33:36 +02:00
libimaevm: Report unsupported filetype using log_err
There's no errno set at this point so that using log_errno would display something useful. Instead use log_error(). Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
d22cf0b005
commit
3feccd45a8
@ -286,7 +286,7 @@ int ima_calc_hash(const char *file, uint8_t *hash)
|
|||||||
err = add_dev_hash(&st, pctx);
|
err = add_dev_hash(&st, pctx);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log_errno("Unsupported file type");
|
log_err("Unsupported file type (0x%x)", st.st_mode & S_IFMT);
|
||||||
err = -1;
|
err = -1;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user