$OpenBSD: patch-kde-dev-scripts_qt4_remove-qt3-support_pl,v 1.2 2013/07/05 14:32:50 zhuk Exp $
Cleanup development scripts, making them more portable and secure.
Upstream review 110858: http://git.reviewboard.kde.org/r/110858/
--- kde-dev-scripts/qt4/remove-qt3-support.pl.orig	Fri Jun 28 22:03:13 2013
+++ kde-dev-scripts/qt4/remove-qt3-support.pl	Fri Jul  5 18:14:32 2013
@@ -8,7 +8,7 @@ use lib dirname( $0 );
 use functionUtilkde;
 use strict;
 
-open(my $F, q(find -name "*" |));
+open(my $F, "-|", qw(find . -type f));
 my $file;
 while ($file = <$F>) {
  	chomp $file;
@@ -169,10 +169,10 @@ while ($file = <$F>) {
 	    $_;
 	} <$FILE>;
 	if ($modified) {
-	    open (my $OUT, ">$file");
+	    open (my $OUT, ">", $file);
 	    print $OUT @l;
 	}
 
     }
-functionUtilkde::diffFile( "@ARGV" );
+functionUtilkde::diffFile( @ARGV );
 
