You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2020/08/05 16:17:31 UTC

svn commit: r1880611 - /apr/apr/trunk/build/lineends.pl

Author: wrowe
Date: Wed Aug  5 16:17:30 2020
New Revision: 1880611

URL: http://svn.apache.org/viewvc?rev=1880611&view=rev
Log:
Correctly observe links as distinct from files to avoid modifying them.


Modified:
    apr/apr/trunk/build/lineends.pl

Modified: apr/apr/trunk/build/lineends.pl
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/lineends.pl?rev=1880611&r1=1880610&r2=1880611&view=diff
==============================================================================
--- apr/apr/trunk/build/lineends.pl (original)
+++ apr/apr/trunk/build/lineends.pl Wed Aug  5 16:17:30 2020
@@ -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;