mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- Fix 100% cpu load
- Bump PORTREVISION PR: 94600 Submitted by: maintainer Thanks to: McMCC
This commit is contained in:
parent
b1e1535123
commit
f27c11db12
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157491
@ -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/ \
|
||||
|
16
archivers/libunrar/files/patch-dll.cpp
Normal file
16
archivers/libunrar/files/patch-dll.cpp
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user