diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-07-09 15:12:11 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2012-07-12 16:42:18 -0400 |
commit | 15ac6d2b8e83a73ac1f62ab0da0d6a85717f28fd (patch) | |
tree | f3bd2a816e816ad565f13ce90816a7fd7fb32454 /base/common/src/com/netscape/cmscore/security | |
parent | 9e4e40b80de0ba47702392b9ad6ccecf67496db7 (diff) | |
download | pki-15ac6d2b8e83a73ac1f62ab0da0d6a85717f28fd.tar.gz pki-15ac6d2b8e83a73ac1f62ab0da0d6a85717f28fd.tar.xz pki-15ac6d2b8e83a73ac1f62ab0da0d6a85717f28fd.zip |
NO_HASHCODE_OVERRIDDEN
Diffstat (limited to 'base/common/src/com/netscape/cmscore/security')
-rw-r--r-- | base/common/src/com/netscape/cmscore/security/PWsdrCache.java | 10 |
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) { |