Ticket #4507: fix-fish_list_perl.patch
File fix-fish_list_perl.patch, 480 bytes (added by lnx, 14 months ago) |
---|
-
ls
old new 123 123 perl -e ' 124 124 use strict; 125 125 use 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 126 use Fcntl ":mode"; #S_ISLNK, S_IFMT, S_IMODE are here 127 use POSIX ":fcntl_h"; #S_ISLNK might be here as well 129 128 my $dirname = $ARGV[0]; 130 129 if (opendir (DIR, $dirname)) { 131 130 while((my $filename = readdir (DIR))){