summaryrefslogtreecommitdiff
path: root/trust/token.c
diff options
context:
space:
mode:
Diffstat (limited to 'trust/token.c')
-rw-r--r--trust/token.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/trust/token.c b/trust/token.c
index d2a12d0..97b1fc0 100644
--- a/trust/token.c
+++ b/trust/token.c
@@ -225,9 +225,8 @@ loader_load_if_file (p11_token *token,
struct stat sb;
if (stat (path, &sb) < 0) {
- if (errno == ENOENT) {
+ if (errno != ENOENT)
p11_message_err (errno, "couldn't stat path: %s", path);
- }
} else if (!S_ISDIR (sb.st_mode)) {
return loader_load_file (token, path, &sb);