opnsense-ports/sysutils/whatpix/files/patch-whatpix
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

53 lines
1.8 KiB
Text

*** whatpix.ori Fri Aug 9 13:43:49 2002
--- whatpix Fri Aug 9 13:44:49 2002
***************
*** 236,242 ****
print " ", $dir, "\n";
# Get list of subdirectories.
! opendir(DIR, $dir) or die "Error: opendir() failed on $dir\n";
my @dirs = grep { -d "$dir/$_" } readdir(DIR);
closedir(DIR);
--- 236,242 ----
print " ", $dir, "\n";
# Get list of subdirectories.
! opendir(DIR, "$dir\0") or die "Error: opendir() failed on $dir\n";
my @dirs = grep { -d "$dir/$_" } readdir(DIR);
closedir(DIR);
***************
*** 246,252 ****
}
# Now do the files in this directory.
! opendir(DIR, $dir) || die "Error: failed to open $dir: $!";
my @files = grep { -r "$dir/$_" && -s "$dir/$_" } readdir(DIR);
closedir(DIR);
my $digester = $usemd5 ? Digest::MD5->new() : Digest::SHA1->new();
--- 246,252 ----
}
# Now do the files in this directory.
! opendir(DIR, "$dir\0") || die "Error: failed to open $dir: $!";
my @files = grep { -r "$dir/$_" && -s "$dir/$_" } readdir(DIR);
closedir(DIR);
my $digester = $usemd5 ? Digest::MD5->new() : Digest::SHA1->new();
***************
*** 256,262 ****
my @vars = stat($filename) or die "Error: could not stat $filename\n";
my $size = $vars[7];
if ($size) {
! open(FILE, $filename) or die "Error: could not open $filename\n";
binmode(FILE);
$digester->reset;
$digester->addfile(*FILE);
--- 256,262 ----
my @vars = stat($filename) or die "Error: could not stat $filename\n";
my $size = $vars[7];
if ($size) {
! open(FILE, "$filename\0") or die "Error: could not open $filename\n";
binmode(FILE);
$digester->reset;
$digester->addfile(*FILE);