From 0521431f12e7d01a770987bb4f7bc4919e9ba15e Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sun, 22 May 2016 21:46:35 +0200 Subject: SBO::Lib: document race condition in git_sbo_tree where $cwd could be deleted --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index a090d01..5bafe0f 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -344,6 +344,7 @@ sub git_sbo_tree { remove_tree($repo_path) if -d $repo_path; $res = system(qw/ git clone /, $url, $repo_path) == 0; } + _race::cond '$cwd could be deleted here'; return 1 if chdir $cwd and $res; return 0; } -- cgit v1.2.3