just trying chmod u+w alone is pointless unless we retry removal.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5367 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-10-21 04:34:18 +00:00
1 parent 65585f97f7
commit 613713ca51
1 file changed
+2 -2
+2 -2
View File
@@ -137,8 +137,8 @@ public class Util {
LOGGER.log(Level.INFO,"Failed to chmod "+f,e);
}
throw new IOException("Unable to delete " + f.getPath());
if(!f.delete() && f.exists())
throw new IOException("Unable to delete " + f.getPath());
}
}