summaryrefslogtreecommitdiff
path: root/build/lineends.pl
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2020-08-05 16:17:30 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2020-08-05 16:17:30 +0000
commitf83348042034f5d912e59493c8ebacc48382f049 (patch)
tree431c3e3744807b5b37923d8c2af7552250c47e25 /build/lineends.pl
parent974a9fa2a3a3ab4e90e901092121dd909f8b2e9f (diff)
downloadlibapr-f83348042034f5d912e59493c8ebacc48382f049.tar.gz
Correctly observe links as distinct from files to avoid modifying them.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1880611 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/lineends.pl')
-rw-r--r--build/lineends.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/lineends.pl b/build/lineends.pl
index bdbaa76b9..58386cc02 100644
--- a/build/lineends.pl
+++ b/build/lineends.pl
@@ -104,7 +104,7 @@ sub totxt {
}
}
return if ($File::Find::dir =~ m|^(.+/)?(\.svn\|\.git)(/.+)?$|);
- @ostat = stat($oname);
+ @ostat = lstat($oname);
return if (!S_ISREG($ostat[2]));
$srcfl = new IO::File $oname, "r" or die;
$dstfl = new IO::File $tname, "w" or die;