ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: fix possible race-condition
Date Fri, 13 May 2016 17:55:53 GMT
Repository: ant
Updated Branches:
  refs/heads/1.9.x 647bdfb2d -> 5c24a75a7


fix possible race-condition

similar to https://bz.apache.org/bugzilla/show_bug.cgi?id=55290

Reported by Yoshiki Higo, Shinpei Hayashi, Hideaki Hata and Mei Nagappan


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/5c24a75a
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/5c24a75a
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/5c24a75a

Branch: refs/heads/1.9.x
Commit: 5c24a75a782d880ddb4ebca79f121066c531ee16
Parents: 647bdfb
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Fri May 13 19:54:21 2016 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Fri May 13 19:54:21 2016 +0200

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/5c24a75a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
index f514fc6..a47b230 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
@@ -487,7 +487,7 @@ public abstract class MSVSS extends Task implements MSVSSConstants {
             //make sure m_LocalDir exists, create it if it doesn't
             File dir = getProject().resolveFile(localPath);
             if (!dir.exists()) {
-                boolean done = dir.mkdirs();
+                boolean done = dir.mkdirs() || dir.exists();
                 if (!done) {
                     String msg = "Directory " + localPath + " creation was not "
                             + "successful for an unknown reason";


Mime
View raw message