Ticket #4507: fix-fish_list_perl.patch

File fix-fish_list_perl.patch, 480 bytes (added by lnx, 14 months ago)

diff -u ls.orig ls > fix-fish_list_perl.patch

  • ls

    old new  
    123123perl -e ' 
    124124use strict; 
    125125use POSIX; 
    126 use Fcntl; 
    127 use POSIX ":fcntl_h"; #S_ISLNK was here until 5.6 
    128 import Fcntl ":mode" unless defined &S_ISLNK; #and is now here 
     126use Fcntl ":mode";      #S_ISLNK, S_IFMT, S_IMODE are here 
     127use POSIX ":fcntl_h";   #S_ISLNK might be here as well 
    129128my $dirname = $ARGV[0]; 
    130129if (opendir (DIR, $dirname)) { 
    131130while((my $filename = readdir (DIR))){