summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-06 21:54:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-06 21:54:57 +0000
commit3a297c6d6123ecf5c26f4f75573a2efa15a27498 (patch)
tree019314cbbf5146138135c3b9576e578647b7f70b
parentcff03399966d4802bb09bcdfefeb7182c4aea6f1 (diff)
downloadldetect-lst-3a297c6d6123ecf5c26f4f75573a2efa15a27498.tar
ldetect-lst-3a297c6d6123ecf5c26f4f75573a2efa15a27498.tar.gz
ldetect-lst-3a297c6d6123ecf5c26f4f75573a2efa15a27498.tar.bz2
ldetect-lst-3a297c6d6123ecf5c26f4f75573a2efa15a27498.tar.xz
ldetect-lst-3a297c6d6123ecf5c26f4f75573a2efa15a27498.zip
don't use cat(1) in update-ldetect-lst (fix bug #3678)
-rw-r--r--ldetect-lst.spec5
-rw-r--r--update-ldetect-lst6
2 files changed, 9 insertions, 2 deletions
diff --git a/ldetect-lst.spec b/ldetect-lst.spec
index 5ef1cb79..2c328458 100644
--- a/ldetect-lst.spec
+++ b/ldetect-lst.spec
@@ -1,6 +1,6 @@
%define name ldetect-lst
%define version 0.1.7
-%define release 12mdk
+%define release 13mdk
Name: %{name}
Version: %{version}
@@ -64,6 +64,9 @@ fi
%{_bindir}/*
%changelog
+* Sun Apr 6 2003 Pixel <pixel@mandrakesoft.com> 0.1.7-13mdk
+- don't use cat(1) in update-ldetect-lst (fix bug #3678)
+
* Fri Mar 28 2003 Frederic Lepied <flepied@mandrakesoft.com> 0.1.7-12mdk
- activated 3D on i830, i845, i85x and i865
diff --git a/update-ldetect-lst b/update-ldetect-lst
index d0921017..8b351fc8 100644
--- a/update-ldetect-lst
+++ b/update-ldetect-lst
@@ -11,5 +11,9 @@ foreach (@files) {
my $d = "$dir/$_.d";
-d $d or next;
my @l = sort glob("$d/*.lst") or next;
- system("cat " . join(" ", @l) . " > $dir/$_");
+ open(my $OUT, " > $dir/$_");
+ foreach (@l) {
+ open(my $IN, $_) or next;
+ print $OUT $_ foreach <$IN>;
+ }
}