mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 03:52:05 +00:00
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:
1 parent
65585f97f7
commit
613713ca51
1 file changed
+2
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user