From 1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 30 Apr 2013 17:37:22 -0400 Subject: 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(). --- src/plugins/preauth/pkinit/pkinit_crypto_nss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c index b33ce749b..ec6db2d13 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; } -- cgit