diff --git a/cmds/keystore/keystore.cpp b/cmds/keystore/keystore.cpp index 31db9fdc1..b48be6ef3 100644 --- a/cmds/keystore/keystore.cpp +++ b/cmds/keystore/keystore.cpp @@ -392,9 +392,7 @@ public: return false; } while ((file = readdir(dir)) != NULL) { - if (isKeyFile(file->d_name)) { - unlink(file->d_name); - } + unlink(file->d_name); } closedir(dir); return true;