diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2013-04-30 17:37:22 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-05-08 01:12:08 -0400 |
commit | 1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2 (patch) | |
tree | 8b83a70cf7d05423d20a86c69263afd14440df1c | |
parent | 8eab7b9ce9081002beb35c0bc5019e68225779f6 (diff) | |
download | krb5-1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2.tar.gz krb5-1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2.tar.xz krb5-1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2.zip |
Fix a typo that caused us to not skip removing "."
When attempting to clean the files out from our temporary directory,
correct the test which was supposed to let us skip over "." and ".." so
that we actually don't try to remove them with remove().
-rw-r--r-- | src/plugins/preauth/pkinit/pkinit_crypto_nss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c index b33ce749b4..ec6db2d136 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c +++ b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c @@ -745,7 +745,7 @@ crypto_get_p12_slot(struct _pkinit_identity_crypto_context *id) __FUNCTION__, configdir, strerror(errno)); else { while ((ent = readdir(dir)) != NULL) { - if ((strcmp(ent->d_name, ".") == 0) && + if ((strcmp(ent->d_name, ".") == 0) || (strcmp(ent->d_name, "..") == 0)) { continue; } |