diff options
author | knu <knu@FreeBSD.org> | 2004-07-13 00:12:47 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-07-13 00:12:47 +0800 |
commit | be644b105a69f7902c8d3f37a887ed5c44cabe10 (patch) | |
tree | 8c03c23252dfff34f4fc5255736f6c1f578ed2d8 /sysutils/portupgrade-devel/files | |
parent | 2e618b16f2ca7b04321f634ea4eaf495d6a63519 (diff) | |
download | freebsd-ports-graphics-be644b105a69f7902c8d3f37a887ed5c44cabe10.tar.gz freebsd-ports-graphics-be644b105a69f7902c8d3f37a887ed5c44cabe10.tar.zst freebsd-ports-graphics-be644b105a69f7902c8d3f37a887ed5c44cabe10.zip |
Add a patch to read the index file via sort(1) instead of reading
directly to avoid core dump.
Diffstat (limited to 'sysutils/portupgrade-devel/files')
-rw-r--r-- | sysutils/portupgrade-devel/files/patch-portsdb.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/portupgrade-devel/files/patch-portsdb.rb b/sysutils/portupgrade-devel/files/patch-portsdb.rb new file mode 100644 index 00000000000..7317dcc85de --- /dev/null +++ b/sysutils/portupgrade-devel/files/patch-portsdb.rb @@ -0,0 +1,14 @@ +Index: lib/portsdb.rb +=================================================================== +RCS file: /home/cvs/pkgtools/lib/portsdb.rb,v +retrieving revision 1.80 +diff -u -2 -r1.80 portsdb.rb +--- lib/portsdb.rb 30 Jun 2004 16:22:35 -0000 1.80 ++++ lib/portsdb.rb 12 Jul 2004 16:08:12 -0000 +@@ -550,5 +550,5 @@ + open_db_for_rebuild! + +- File.open(index_file) do |f| ++ open("| sort #{shelljoin(index_file)}") do |f| + f.each_with_index do |line, i| + lineno = i + 1 |