llistxattr returns 0 if there are no xattrs and it is valid
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
parent
76f3496455
commit
13571ace6b
@ -418,7 +418,7 @@ static int calc_evm_hash(const char *file, unsigned char *hash)
|
||||
log_info("generation: %u\n", generation);
|
||||
|
||||
list_size = llistxattr(file, list, sizeof(list));
|
||||
if (list_size <= 0) {
|
||||
if (list_size < 0) {
|
||||
log_err("llistxattr() failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user