From: Nalin Dahyabhai Date: Tue, 30 Apr 2013 21:37:22 +0000 (-0400) Subject: Fix a typo that caused us to not skip removing "." X-Git-Tag: krb5-1.12-alpha1~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7d7018e7a29c91c86ce4222cff9e44cf8b62a2;p=thirdparty%2Fkrb5.git 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(). --- 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; }