aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-03-17 20:54:26 +0800
committermnag <mnag@FreeBSD.org>2006-03-17 20:54:26 +0800
commit8d74958d2b051a50cf5a1ba5434d06c254927532 (patch)
treee11ac2a48847b4ee52a52f412f4f95ba1bf6cdcf /archivers
parent65a3bd928d97c2ff313f2ed6a85a47d5d354fa64 (diff)
downloadfreebsd-ports-gnome-8d74958d2b051a50cf5a1ba5434d06c254927532.tar.gz
freebsd-ports-gnome-8d74958d2b051a50cf5a1ba5434d06c254927532.tar.zst
freebsd-ports-gnome-8d74958d2b051a50cf5a1ba5434d06c254927532.zip
- Fix 100% cpu load
- Bump PORTREVISION PR: 94600 Submitted by: maintainer Thanks to: McMCC
Diffstat (limited to 'archivers')
-rw-r--r--archivers/libunrar/Makefile1
-rw-r--r--archivers/libunrar/files/patch-dll.cpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/archivers/libunrar/Makefile b/archivers/libunrar/Makefile
index 115259eef243..44204c4118a4 100644
--- a/archivers/libunrar/Makefile
+++ b/archivers/libunrar/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libunrar
PORTVERSION= 3.54
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://files2.rarlab.com/rar/ \
http://files3.rarlab.com/rar/ \
diff --git a/archivers/libunrar/files/patch-dll.cpp b/archivers/libunrar/files/patch-dll.cpp
new file mode 100644
index 000000000000..ace28c16309f
--- /dev/null
+++ b/archivers/libunrar/files/patch-dll.cpp
@@ -0,0 +1,16 @@
+diff -ruN unrar.orig/dll.cpp unrar/dll.cpp
+--- dll.cpp.orig 2005-08-03 20:34:30.000000000 +0400
++++ dll.cpp 2006-01-11 12:13:33.000000000 +0300
+@@ -271,8 +271,10 @@
+ strcpy(Data->Cmd.Command,Operation==RAR_EXTRACT ? "X":"T");
+ Data->Cmd.Test=Operation!=RAR_EXTRACT;
+ bool Repeat=false;
+- Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat);
+-
++
++ if(Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat) == false)
++ return (ERAR_UNKNOWN);
++
+ while (Data->Arc.ReadHeader()!=0 && Data->Arc.GetHeaderType()==NEWSUB_HEAD)
+ {
+ Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat);