diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-23 14:53:53 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-23 23:06:27 +0200 |
commit | b7cc29a78c3c705374ff25223fe14749ddb076b9 (patch) | |
tree | 4d9ec4586d19ed2230f4bdbb2a2e1887f7b254a4 /trust/token.c | |
parent | 4d04cfdf2ac078cc4a95ff9a145f0045e074470b (diff) | |
download | p11-kit-b7cc29a78c3c705374ff25223fe14749ddb076b9.tar.gz |
Use simple serial automake test harness
* Add a testing sanity check to see if we're catching errors
* Fix a few other testing issues
Diffstat (limited to 'trust/token.c')
-rw-r--r-- | trust/token.c | 3 |
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); |