projects
/
platform
/
upstream
/
ima-evm-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f3496
)
llistxattr returns 0 if there are no xattrs and it is valid
author
Dmitry Kasatkin
<dmitry.kasatkin@intel.com>
Fri, 18 May 2012 09:40:13 +0000
(12:40 +0300)
committer
Dmitry Kasatkin
<dmitry.kasatkin@intel.com>
Thu, 6 Sep 2012 11:08:53 +0000
(14:08 +0300)
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
src/evmctl.c
patch
|
blob
|
history
diff --git
a/src/evmctl.c
b/src/evmctl.c
index
2407c5a
..
33323e3
100644
(file)
--- a/
src/evmctl.c
+++ b/
src/evmctl.c
@@
-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;
}