]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix a typo that caused us to not skip removing "."
authorNalin Dahyabhai <nalin@redhat.com>
Tue, 30 Apr 2013 21:37:22 +0000 (17:37 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 8 May 2013 05:12:08 +0000 (01:12 -0400)
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

index b33ce749b4c5797d8a00998ec1243f5d708388a9..ec6db2d136287eb1ca7982aca5de6aee62656c11 100644 (file)
@@ -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;
                     }