summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/security/PWsdrCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/cmscore/security/PWsdrCache.java')
-rw-r--r--base/common/src/com/netscape/cmscore/security/PWsdrCache.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/cmscore/security/PWsdrCache.java b/base/common/src/com/netscape/cmscore/security/PWsdrCache.java
index 810605d41..e9c7af8e5 100644
--- a/base/common/src/com/netscape/cmscore/security/PWsdrCache.java
+++ b/base/common/src/com/netscape/cmscore/security/PWsdrCache.java
@@ -382,7 +382,9 @@ public class PWsdrCache {
if (tmpPWcache.exists()) {
// it wasn't removed?
- tmpPWcache.delete();
+ if (!tmpPWcache.delete()) {
+ debug("Could not delete the existing " + mPWcachedb + ".tmp file.");
+ }
tmpPWcache = new File(mPWcachedb + ".tmp");
}
outstream = new FileOutputStream(mPWcachedb + ".tmp");
@@ -417,10 +419,12 @@ public class PWsdrCache {
origFile.getCanonicalPath());
} catch (IOException e) {
CMS.debug("Unable to change file permissions on "
- + origFile.toString());
+ + origFile.toString());
}
}
- tmpPWcache.delete();
+ if (!tmpPWcache.delete()) {
+ debug("Could not delete the existing " + mPWcachedb + ".tmp file.");
+ }
debug("operation completed for " + mPWcachedb);
}
} catch (Exception exx) {