chiark / gitweb /
git-cache-proxy: use lstat
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2013 00:27:51 +0000 (00:27 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2013 00:27:51 +0000 (00:27 +0000)
scripts/git-cache-proxy

index 12a4f52cdff44f3f412b6ce0cc4ca32574609393..450a9f21e6d4fc7c6427da563dc79503087d36d5 100755 (executable)
@@ -237,7 +237,7 @@ sub clonefetch () {
     open LOCK, "+>", $lock or fail "open/create $lock: $!";
     flock LOCK, LOCK_EX or fail "lock exclusive $lock: $!";
 
     open LOCK, "+>", $lock or fail "open/create $lock: $!";
     flock LOCK, LOCK_EX or fail "lock exclusive $lock: $!";
 
-    my $exists = stat $gitd;
+    my $exists = lstat $gitd;
     $exists or $!==ENOENT or fail "stat $gitd: $!";
 
     our $fetchfail = '';
     $exists or $!==ENOENT or fail "stat $gitd: $!";
 
     our $fetchfail = '';