commit unrar for openSUSE:Factory:NonFree

2020-10-24 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-10-24 15:12:11

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3463 (New)


Package is "unrar"

Sat Oct 24 15:12:11 2020 rev:91 rq:843430 version:6.0.1

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2020-07-18 
20:59:14.911371711 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3463/unrar.changes
2020-10-24 15:12:12.415858590 +0200
@@ -1,0 +2,6 @@
+Thu Oct 22 12:41:55 UTC 2020 - Ismail Dönmez 
+
+- Update to version 6.0.1
+  * Based on WinRAR 6.00 beta 1
+
+---

Old:

  unrarsrc-5.9.4.tar.gz

New:

  unrarsrc-6.0.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.tzjXVW/_old  2020-10-24 15:12:13.263859649 +0200
+++ /var/tmp/diff_new_pack.tzjXVW/_new  2020-10-24 15:12:13.267859653 +0200
@@ -18,9 +18,9 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_9_4
+%define libsuffix 6_0_1
 Name:   unrar
-Version:5.9.4
+Version:6.0.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.9.4.tar.gz -> unrarsrc-6.0.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2020-06-25 12:40:37.0 +0200
+++ new/unrar/cmddata.cpp   2020-10-22 10:48:21.0 +0200
@@ -56,7 +56,6 @@
   // In Windows we may prefer to implement our own command line parser
   // to avoid replacing \" by " in standard parser. Such replacing corrupts
   // destination paths like "dest path\" in extraction commands.
-  // Also our own parser is Unicode compatible.
   const wchar *CmdLine=GetCommandLine();
 
   wchar *Par;
@@ -288,7 +287,10 @@
 AppendArcNameToPath=APPENDARCNAME_DESTPATH;
   else
 if (Switch[2]=='1')
-  AppendArcNameToPath=APPENDARCNAME_OWNDIR;
+  AppendArcNameToPath=APPENDARCNAME_OWNSUBDIR;
+else
+  if (Switch[2]=='2')
+AppendArcNameToPath=APPENDARCNAME_OWNDIR;
   break;
 #ifndef SFX_MODULE
 case 'G':
@@ -436,9 +438,9 @@
 wcsncpyz(EmailTo,Switch[4]!=0 ? Switch+4:L"@",ASIZE(EmailTo));
 break;
   }
-  if (wcsicomp(Switch+1,L"M")==0)
+  if (wcsicomp(Switch+1,L"M")==0) // For compatibility with pre-WinRAR 6.0 
-im syntax. Replaced with -idv.
   {
-MoreInfo=true;
+VerboseOutput=true;
 break;
   }
   if (wcsicomp(Switch+1,L"NUL")==0)
@@ -465,6 +467,12 @@
 case 'P':
   DisablePercentage=true;
   break;
+case 'N':
+  DisableNames=true;
+  break;
+case 'V':
+  VerboseOutput=true;
+  break;
   }
 break;
   }
@@ -539,7 +547,6 @@
   case 'D': Type=FILTER_DELTA;   break;
   case 'A': Type=FILTER_AUDIO;   break;
   case 'C': Type=FILTER_RGB; break;
-  case 'I': Type=FILTER_ITANIUM; break;
   case 'R': Type=FILTER_ARM; break;
 }
 if (*Str=='+' || *Str=='-')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.hpp new/unrar/cmddata.hpp
--- old/unrar/cmddata.hpp   2020-06-25 12:40:37.0 +0200
+++ new/unrar/cmddata.hpp   2020-10-22 10:48:21.0 +0200
@@ -11,7 +11,6 @@
 class CommandData:public RAROptions
 {
   private:
-void ProcessSwitchesString(const wchar *Str);
 void ProcessSwitch(const wchar *Switch);
 void BadSwitch(const wchar *Switch);
 uint GetExclAttr(const wchar *Str,bool );
@@ -34,6 +33,7 @@
 void ParseEnvVar();
 void ReadConfig();
 void PreprocessArg(const wchar *Arg);
+void ProcessSwitchesString(const wchar *Str);
 void OutTitle();
 void OutHelp(RAR_EXIT ExitCode);
 bool IsSwitch(int Ch);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/consio.cpp new/unrar/consio.cpp
--- old/unrar/consio.cpp2020-06-25 12:40:37.0 +0200
+++ new/unrar/consio.cpp2020-10-22 10:48:21.0 +0200
@@ -305,7 +305,7 @@
 
   for (int I=0;I4 ? L"\n":L" "):L", ");
+eprintf(I==0 ? (NumItems>3 ? L"\n":L" "):L", ");
 int KeyPos=ItemKeyPos[I];
 for (int J=0;J
 
 VS_VERSION_INFO 

commit unrar for openSUSE:Factory:NonFree

2020-07-18 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-07-18 20:59:12

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3592 (New)


Package is "unrar"

Sat Jul 18 20:59:12 2020 rev:90 rq:821285 version:5.9.4

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2020-07-01 
14:24:50.642423156 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3592/unrar.changes
2020-07-18 20:59:14.911371711 +0200
@@ -1,0 +2,5 @@
+Thu Jul 16 11:15:30 UTC 2020 - Martin Pluskal 
+
+- Use https for urls
+
+---



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.gc72e5/_old  2020-07-18 20:59:15.787372638 +0200
+++ /var/tmp/diff_new_pack.gc72e5/_new  2020-07-18 20:59:15.791372642 +0200
@@ -19,15 +19,14 @@
 # majorversion should match the major version number.
 %define majorversion 5
 %define libsuffix 5_9_4
-
 Name:   unrar
 Version:5.9.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree
 Group:  Productivity/Archiving/Compression
-URL:http://www.rarlab.com
-Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
+URL:https://www.rarlab.com
+Source0:https://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
 Patch1: soname.patch
 BuildRequires:  gcc-c++
@@ -61,7 +60,7 @@
 sed -i 's/\r$//' *.txt
 
 %build
-make %{?_smp_mflags} -f makefile unrar lib libversion=%{version} 
CXXFLAGS="%{optflags} -fPIC -fno-strict-aliasing" STRIP=true
+%make_build -f makefile unrar lib libversion=%{version} CXXFLAGS="%{optflags} 
-fPIC -fno-strict-aliasing" STRIP=true
 
 %install
 install -Dpm 0755 unrar \




commit unrar for openSUSE:Factory:NonFree

2020-07-01 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-07-01 14:24:49

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3060 (New)


Package is "unrar"

Wed Jul  1 14:24:49 2020 rev:89 rq:817640 version:5.9.4

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2020-06-10 
01:01:50.409050699 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3060/unrar.changes
2020-07-01 14:24:50.642423156 +0200
@@ -1,0 +2,6 @@
+Mon Jun 29 08:11:52 UTC 2020 - Ismail Dönmez 
+
+- Update to version 5.9.4
+  * Based on WinRAR version 5.91 final
+
+---

Old:

  unrarsrc-5.9.3.tar.gz

New:

  unrarsrc-5.9.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.WzwiuP/_old  2020-07-01 14:24:51.518425873 +0200
+++ /var/tmp/diff_new_pack.WzwiuP/_new  2020-07-01 14:24:51.522425886 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_9_3
+%define libsuffix 5_9_4
 
 Name:   unrar
-Version:5.9.3
+Version:5.9.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.9.3.tar.gz -> unrarsrc-5.9.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2020-06-04 20:22:24.0 +0200
+++ new/unrar/dll.rc2020-06-25 12:35:32.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 91, 1, 3449
-PRODUCTVERSION 5, 91, 1, 3449
+FILEVERSION 5, 91, 100, 3470
+PRODUCTVERSION 5, 91, 100, 3470
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.91.1\0"
-  VALUE "ProductVersion", "5.91.1\0"
+  VALUE "FileVersion", "5.91.0\0"
+  VALUE "ProductVersion", "5.91.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2020\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2020-06-04 20:26:44.0 +0200
+++ new/unrar/version.hpp   2020-06-25 12:40:39.0 +0200
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR91
-#define RARVER_BETA  1
-#define RARVER_DAY   4
+#define RARVER_BETA  0
+#define RARVER_DAY  25
 #define RARVER_MONTH 6
 #define RARVER_YEAR   2020




commit unrar for openSUSE:Factory:NonFree

2020-06-09 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-06-10 01:01:49

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3606 (New)


Package is "unrar"

Wed Jun 10 01:01:49 2020 rev:88 rq:812034 version:5.9.3

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2020-04-02 
17:41:27.229217535 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3606/unrar.changes
2020-06-10 01:01:50.409050699 +0200
@@ -1,0 +2,7 @@
+Sat Jun  6 08:06:11 UTC 2020 - Ismail Dönmez 
+
+- Update to version 5.9.3
+  * Based on WinRAR version 5.91 beta 1
+- Refresh and rename unrarsrc-5.0.5-soname.patch to soname.patch
+
+---

Old:

  unrarsrc-5.0.5-soname.patch
  unrarsrc-5.9.2.tar.gz

New:

  soname.patch
  unrarsrc-5.9.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.YyeBXU/_old  2020-06-10 01:01:51.109052543 +0200
+++ /var/tmp/diff_new_pack.YyeBXU/_new  2020-06-10 01:01:51.113052553 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_9_2
+%define libsuffix 5_9_3
 
 Name:   unrar
-Version:5.9.2
+Version:5.9.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree
@@ -29,7 +29,7 @@
 URL:http://www.rarlab.com
 Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
-Patch1: unrarsrc-5.0.5-soname.patch
+Patch1: soname.patch
 BuildRequires:  gcc-c++
 
 %description
@@ -61,12 +61,7 @@
 sed -i 's/\r$//' *.txt
 
 %build
-make %{?_smp_mflags} -f makefile CXXFLAGS="%{optflags} \
--fPIC -fno-strict-aliasing" STRIP=true
-#bnc#693890
-rm -f *.o
-make %{?_smp_mflags} -f makefile lib libversion=%{version} \
-CXXFLAGS="%{optflags} -fPIC -fno-strict-aliasing" STRIP=true
+make %{?_smp_mflags} -f makefile unrar lib libversion=%{version} 
CXXFLAGS="%{optflags} -fPIC -fno-strict-aliasing" STRIP=true
 
 %install
 install -Dpm 0755 unrar \

++ soname.patch ++
Index: unrar/makefile
===
--- unrar.orig/makefile
+++ unrar/makefile
@@ -157,7 +157,7 @@ lib:WHAT=RARDLL
 lib:   CXXFLAGS+=$(LIBFLAGS)
 lib:   clean $(OBJECTS) $(LIB_OBJ)
@rm -f libunrar.*
-   $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+   $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o 
libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
 
 install-unrar:
++ unrarsrc-5.9.2.tar.gz -> unrarsrc-5.9.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2020-03-26 11:04:32.0 +0100
+++ new/unrar/arcread.cpp   2020-06-04 20:26:42.0 +0200
@@ -1262,6 +1262,7 @@
 IntToExt(FileName,FileName,ASIZE(FileName));
 CharToWide(FileName,FileHead.FileName,ASIZE(FileHead.FileName));
 ConvertNameCase(FileHead.FileName);
+ConvertFileHeader();
 
 if (Raw.Size()!=0)
   NextBlockPos=CurBlockPos+FileHead.HeadSize+FileHead.PackSize;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/crc.cpp new/unrar/crc.cpp
--- old/unrar/crc.cpp   2020-03-26 11:04:32.0 +0100
+++ new/unrar/crc.cpp   2020-06-04 20:26:42.0 +0200
@@ -73,7 +73,7 @@
crc_tables[5][(byte)(StartCRC >> 16)] ^
crc_tables[4][(byte)(StartCRC >> 24)] ^
crc_tables[3][(byte) NextData   ] ^
-   crc_tables[2][(byte)(NextData >>8 ) ] ^
+   crc_tables[2][(byte)(NextData >> 8) ] ^
crc_tables[1][(byte)(NextData >> 16)] ^
crc_tables[0][(byte)(NextData >> 24)];
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2020-03-26 11:02:02.0 +0100
+++ new/unrar/dll.rc2020-06-04 20:22:24.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 90, 100, 3379
-PRODUCTVERSION 5, 90, 100, 3379
+FILEVERSION 5, 91, 1, 3449
+PRODUCTVERSION 5, 91, 1, 3449
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE 

commit unrar for openSUSE:Factory:NonFree

2020-04-02 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-04-02 17:41:26

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3248 (New)


Package is "unrar"

Thu Apr  2 17:41:26 2020 rev:87 rq:789931 version:5.9.2

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2020-01-30 
09:29:39.733113187 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3248/unrar.changes
2020-04-02 17:41:27.229217535 +0200
@@ -1,0 +2,6 @@
+Tue Mar 31 05:45:01 UTC 2020 - Ismail Dönmez 
+
+- Update to version 5.9.2
+  * Based on WinRAR version 5.90 final
+
+---

Old:

  unrarsrc-5.9.1.tar.gz

New:

  unrarsrc-5.9.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.9LYCXq/_old  2020-04-02 17:41:27.857217964 +0200
+++ /var/tmp/diff_new_pack.9LYCXq/_new  2020-04-02 17:41:27.861217966 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_9_1
+%define libsuffix 5_9_2
 
 Name:   unrar
-Version:5.9.1
+Version:5.9.2
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.9.1.tar.gz -> unrarsrc-5.9.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2020-01-28 16:01:01.0 +0100
+++ new/unrar/dll.rc2020-03-26 11:02:02.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 90, 1, 3321
-PRODUCTVERSION 5, 90, 1, 3321
+FILEVERSION 5, 90, 100, 3379
+PRODUCTVERSION 5, 90, 100, 3379
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.90.1\0"
-  VALUE "ProductVersion", "5.90.1\0"
+  VALUE "FileVersion", "5.90.0\0"
+  VALUE "ProductVersion", "5.90.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2020\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/file.cpp new/unrar/file.cpp
--- old/unrar/file.cpp  2020-01-28 16:03:58.0 +0100
+++ new/unrar/file.cpp  2020-03-26 11:04:33.0 +0100
@@ -401,7 +401,7 @@
 }
 break;
   }
-  return ReadSize;
+  return ReadSize; // It can return -1 only if AllowExceptions is disabled.
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/pathfn.cpp new/unrar/pathfn.cpp
--- old/unrar/pathfn.cpp2020-01-28 16:03:59.0 +0100
+++ new/unrar/pathfn.cpp2020-03-26 11:04:33.0 +0100
@@ -180,7 +180,7 @@
 
 void MakeName(const wchar *Path,const wchar *Name,wchar *Pathname,size_t 
MaxSize)
 {
-  // 'Name' and 'Pathname' can point to same memory area. This is why we use
+  // 'Path', 'Name' and 'Pathname' can point to same memory area. So we use
   // the temporary buffer instead of constructing the name in 'Pathname'.
   wchar OutName[NM];
   wcsncpyz(OutName,Path,ASIZE(OutName));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/qopen.cpp new/unrar/qopen.cpp
--- old/unrar/qopen.cpp 2020-01-28 16:03:59.0 +0100
+++ new/unrar/qopen.cpp 2020-03-26 11:04:33.0 +0100
@@ -205,15 +205,15 @@
 
 uint QuickOpen::ReadBuffer()
 {
-  int ReadSize=0;
   int64 SavePos=Arc->Tell();
   Arc->File::Seek(RawDataStart+RawDataPos,SEEK_SET);
   size_t SizeToRead=(size_t)Min(RawDataSize-RawDataPos,MaxBufSize-ReadBufSize);
   if (Arc->SubHead.Encrypted)
 SizeToRead &= ~CRYPT_BLOCK_MASK;
+  int ReadSize=0;
   if (SizeToRead!=0)
   {
-int ReadSize=Arc->File::Read(Buf+ReadBufSize,SizeToRead);
+ReadSize=Arc->File::Read(Buf+ReadBufSize,SizeToRead);
 if (ReadSize<=0)
   ReadSize=0;
 else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/strfn.cpp new/unrar/strfn.cpp
--- old/unrar/strfn.cpp 2020-01-28 16:03:59.0 +0100
+++ new/unrar/strfn.cpp 2020-03-26 11:04:34.0 

commit unrar for openSUSE:Factory:NonFree

2020-01-30 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2020-01-30 09:29:38

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.26092 (New)


Package is "unrar"

Thu Jan 30 09:29:38 2020 rev:86 rq:768255 version:5.9.1

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-12-13 
12:00:53.269481219 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.26092/unrar.changes   
2020-01-30 09:29:39.733113187 +0100
@@ -1,0 +2,6 @@
+Wed Jan 29 09:34:48 UTC 2020 - Ismail Dönmez 
+
+- Update to version 5.9.1
+  * Based on WinRAR version 5.90 beta1
+
+---

Old:

  unrarsrc-5.8.5.tar.gz

New:

  unrarsrc-5.9.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.F8QHMK/_old  2020-01-30 09:29:40.349113516 +0100
+++ /var/tmp/diff_new_pack.F8QHMK/_new  2020-01-30 09:29:40.349113516 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_8_5
+%define libsuffix 5_9_1
 
 Name:   unrar
-Version:5.8.5
+Version:5.9.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.8.5.tar.gz -> unrarsrc-5.9.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arccmt.cpp new/unrar/arccmt.cpp
--- old/unrar/arccmt.cpp2019-12-05 08:39:19.0 +0100
+++ new/unrar/arccmt.cpp2020-01-28 16:03:58.0 +0100
@@ -4,8 +4,15 @@
 {
   if (!MainComment)
 return false;
-  SaveFilePos SavePos(*this);
+  int64 SavePos=Tell();
+  bool Success=DoGetComment(CmtData);
+  Seek(SavePos,SEEK_SET);
+  return Success;
+}
 
+
+bool Archive::DoGetComment(Array *CmtData)
+{
 #ifndef SFX_MODULE
   uint CmtLength;
   if (Format==RARFMT14)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2019-12-05 08:39:19.0 +0100
+++ new/unrar/archive.cpp   2020-01-28 16:03:58.0 +0100
@@ -208,8 +208,8 @@
   break;
   }
 
-  // This check allows to make RS based recovery even if password is incorrect.
-  // But we should not do it for EnableBroken or we'll get 'not RAR archive'
+  
+  // We should not do it for EnableBroken or we'll get 'not RAR archive'
   // messages when extracting encrypted archives with wrong password.
   if (FailedHeaderDecryption && !EnableBroken)
 return false;
@@ -233,7 +233,7 @@
   // immediately after IsArchive call.
   if (HeadersLeft && (!SilentOpen || !Encrypted))
   {
-SaveFilePos SavePos(*this);
+int64 SavePos=Tell();
 int64 SaveCurBlockPos=CurBlockPos,SaveNextBlockPos=NextBlockPos;
 HEADER_TYPE SaveCurHeaderType=CurHeaderType;
 
@@ -262,6 +262,7 @@
 CurBlockPos=SaveCurBlockPos;
 NextBlockPos=SaveNextBlockPos;
 CurHeaderType=SaveCurHeaderType;
+Seek(SavePos,SEEK_SET);
   }
   if (!Volume || FirstVolume)
 wcsncpyz(FirstVolumeName,FileName,ASIZE(FirstVolumeName));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2019-12-05 08:39:19.0 +0100
+++ new/unrar/archive.hpp   2020-01-28 16:03:58.0 +0100
@@ -37,6 +37,7 @@
 void UnexpEndArcMsg();
 void BrokenHeaderMsg();
 void UnkEncVerMsg(const wchar *Name,const wchar *Info);
+bool DoGetComment(Array *CmtData);
 bool ReadCommentData(Array *CmtData);
 
 #if !defined(RAR_NOCRYPT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2019-12-05 08:39:19.0 +0100
+++ new/unrar/arcread.cpp   2020-01-28 16:03:58.0 +0100
@@ -521,7 +521,6 @@
 {
   // Last 7 bytes of recovered volume can contain zeroes, because
   // REV files store its own information (volume number, etc.) here.
-  SaveFilePos SavePos(*this);
   int64 Length=Tell();
   Seek(Length-7,SEEK_SET);
   Recovered=true;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2019-12-05 08:39:19.0 +0100
+++ new/unrar/cmddata.cpp   2020-01-28 16:03:58.0 +0100
@@ -953,7 +953,6 @@
 case 'X':
 case 'E':
 case 'T':
-case 'I':
   {
 CmdExtract Extract(this);
 Extract.DoExtract();

commit unrar for openSUSE:Factory:NonFree

2019-12-13 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-12-13 12:00:52

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.4691 (New)


Package is "unrar"

Fri Dec 13 12:00:52 2019 rev:85 rq:755889 version:5.8.5

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-11-18 
20:12:56.725513855 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.4691/unrar.changes
2019-12-13 12:00:53.269481219 +0100
@@ -1,0 +2,6 @@
+Wed Dec 11 15:30:48 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.8.5
+  * Based on WinRAR version 5.80 final
+
+---

Old:

  unrarsrc-5.8.4.tar.gz

New:

  unrarsrc-5.8.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.nIOItL/_old  2019-12-13 12:00:55.013480560 +0100
+++ /var/tmp/diff_new_pack.nIOItL/_new  2019-12-13 12:00:55.053480545 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_8_4
+%define libsuffix 5_8_5
 
 Name:   unrar
-Version:5.8.4
+Version:5.8.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.8.4.tar.gz -> unrarsrc-5.8.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2019-11-17 13:23:47.0 +0100
+++ new/unrar/arcread.cpp   2019-12-05 08:39:19.0 +0100
@@ -584,7 +584,7 @@
 {
   // This message is used by Android GUI to reset cached passwords.
   // Update appropriate code if changed.
-  uiMsg(UIERROR_BADPSW,FileName);
+  uiMsg(UIERROR_BADPSW,FileName,FileName);
   FailedHeaderDecryption=true;
   ErrHandler.SetErrorCode(RARX_BADPWD);
   return 0;
@@ -593,7 +593,7 @@
 {
   // This message is used by Android GUI and Windows GUI and SFX to
   // reset cached passwords. Update appropriate code if changed.
-  uiMsg(UIWAIT_BADPSW,FileName);
+  uiMsg(UIWAIT_BADPSW,FileName,FileName);
   Cmd->Password.Clean();
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-11-17 13:01:32.0 +0100
+++ new/unrar/dll.rc2019-12-05 08:36:19.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 80, 4, 3248
-PRODUCTVERSION 5, 80, 4, 3248
+FILEVERSION 5, 80, 100, 3266
+PRODUCTVERSION 5, 80, 100, 3266
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.80.4\0"
-  VALUE "ProductVersion", "5.80.4\0"
+  VALUE "FileVersion", "5.80.0\0"
+  VALUE "ProductVersion", "5.80.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2019-11-17 13:23:47.0 +0100
+++ new/unrar/extract.cpp   2019-12-05 08:39:19.0 +0100
@@ -479,13 +479,13 @@
 {
   // This message is used by Android GUI to reset cached passwords.
   // Update appropriate code if changed.
-  uiMsg(UIERROR_BADPSW,ArcFileName);
+  uiMsg(UIERROR_BADPSW,Arc.FileName,ArcFileName);
 }
 else // For passwords entered manually.
 {
   // This message is used by Android GUI and Windows GUI and SFX to
   // reset cached passwords. Update appropriate code if changed.
-  uiMsg(UIWAIT_BADPSW,ArcFileName);
+  uiMsg(UIWAIT_BADPSW,Arc.FileName,ArcFileName);
   Cmd->Password.Clean();
 
   // Avoid new requests for unrar.dll to prevent the infinite loop
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/loclang.hpp new/unrar/loclang.hpp
--- old/unrar/loclang.hpp   2019-11-17 13:23:48.0 +0100
+++ new/unrar/loclang.hpp   2019-12-05 08:39:20.0 +0100
@@ -359,6 +359,7 @@
 #define   MNewerRAR  L"\nYou may need a newer version of RAR."
 #define   MUnkEncMethod  L"\nUnknown encryption method in %s"
 #define   MWrongPassword 

commit unrar for openSUSE:Factory:NonFree

2019-11-18 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-11-18 20:12:26

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.26869 (New)


Package is "unrar"

Mon Nov 18 20:12:26 2019 rev:84 rq:749149 version:5.8.4

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-10-21 
12:32:40.616251550 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.26869/unrar.changes   
2019-11-18 20:12:56.725513855 +0100
@@ -1,0 +2,6 @@
+Sun Nov 17 21:04:09 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.8.4
+  * Based on WinRAR version 5.80 beta 4
+
+---

Old:

  unrarsrc-5.8.3.tar.gz

New:

  unrarsrc-5.8.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.v3H01n/_old  2019-11-18 20:12:57.229513598 +0100
+++ /var/tmp/diff_new_pack.v3H01n/_new  2019-11-18 20:12:57.233513596 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_8_3
+%define libsuffix 5_8_4
 
 Name:   unrar
-Version:5.8.3
+Version:5.8.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.8.3.tar.gz -> unrarsrc-5.8.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2019-10-20 13:20:09.0 +0200
+++ new/unrar/archive.hpp   2019-11-17 13:23:47.0 +0100
@@ -29,7 +29,6 @@
 void UpdateLatestTime(FileHeader *CurBlock);
 void ConvertNameCase(wchar *Name);
 void ConvertFileHeader(FileHeader *hd);
-void WriteBlock50(HEADER_TYPE HeaderType,BaseBlock *wb,bool 
OnlySetSize,bool NonFinalWrite);
 size_t ReadHeader14();
 size_t ReadHeader15();
 size_t ReadHeader50();
@@ -65,8 +64,6 @@
 size_t SearchBlock(HEADER_TYPE HeaderType);
 size_t SearchSubBlock(const wchar *Type);
 size_t SearchRR();
-void WriteBlock(HEADER_TYPE HeaderType,BaseBlock *wb=NULL,bool 
OnlySetSize=false,bool NonFinalWrite=false);
-void SetBlockSize(HEADER_TYPE HeaderType,BaseBlock *wb=NULL) 
{WriteBlock(HeaderType,wb,true);}
 size_t ReadHeader();
 void CheckArc(bool EnableBroken);
 void CheckOpen(const wchar *Name);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2019-10-20 13:20:09.0 +0200
+++ new/unrar/arcread.cpp   2019-11-17 13:23:47.0 +0100
@@ -720,6 +720,7 @@
   UnkEncVerMsg(FileName,Info);
   return 0;
 }
+
 Raw.GetB(CryptHead.Salt,SIZE_SALT50);
 if (CryptHead.UsePswCheck)
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-10-20 12:54:48.0 +0200
+++ new/unrar/dll.rc2019-11-17 13:01:32.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 80, 3, 3220
-PRODUCTVERSION 5, 80, 3, 3220
+FILEVERSION 5, 80, 4, 3248
+PRODUCTVERSION 5, 80, 4, 3248
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.80.3\0"
-  VALUE "ProductVersion", "5.80.3\0"
+  VALUE "FileVersion", "5.80.4\0"
+  VALUE "ProductVersion", "5.80.4\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2019-10-20 13:20:09.0 +0200
+++ new/unrar/extract.cpp   2019-11-17 13:23:47.0 +0100
@@ -735,38 +735,52 @@
   else
 mprintf(L"\b\b\b\b\b ");
 
+  // If we successfully unpacked a hard link, we wish to set its file
+  // attributes. Hard link shares file metadata with link target,
+  // so we do not need to set link time or owner. But when we overwrite
+  // an existing link, we can call PrepareToDelete(), which affects
+  // link target attributes as well. So we set link attributes to restore
+  // both target and link attributes if PrepareToDelete() changed them.
+  bool SetAttrOnly=LinkEntry && 

commit unrar for openSUSE:Factory:NonFree

2019-10-21 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-10-21 12:32:37

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.2352 (New)


Package is "unrar"

Mon Oct 21 12:32:37 2019 rev:83 rq:741330 version:5.8.3

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-09-30 
16:03:47.784514453 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.2352/unrar.changes
2019-10-21 12:32:40.616251550 +0200
@@ -1,0 +2,6 @@
+Sun Oct 20 16:15:18 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.8.3
+  * Based on WinRAR version 5.80 beta 3
+
+---

Old:

  unrarsrc-5.8.2.tar.gz

New:

  unrarsrc-5.8.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.RuVanz/_old  2019-10-21 12:32:41.188252199 +0200
+++ /var/tmp/diff_new_pack.RuVanz/_new  2019-10-21 12:32:41.192252203 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_8_2
+%define libsuffix 5_8_3
 
 Name:   unrar
-Version:5.8.2
+Version:5.8.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.8.2.tar.gz -> unrarsrc-5.8.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.cpp new/unrar/dll.cpp
--- old/unrar/dll.cpp   2019-09-26 10:35:32.0 +0200
+++ new/unrar/dll.cpp   2019-10-20 13:20:09.0 +0200
@@ -95,23 +95,23 @@
 r->Flags=0;
 
 if (Data->Arc.Volume)
-  r->Flags|=0x01;
+  r->Flags|=ROADF_VOLUME;
 if (Data->Arc.MainComment)
-  r->Flags|=0x02;
+  r->Flags|=ROADF_COMMENT;
 if (Data->Arc.Locked)
-  r->Flags|=0x04;
+  r->Flags|=ROADF_LOCK;
 if (Data->Arc.Solid)
-  r->Flags|=0x08;
+  r->Flags|=ROADF_SOLID;
 if (Data->Arc.NewNumbering)
-  r->Flags|=0x10;
+  r->Flags|=ROADF_NEWNUMBERING;
 if (Data->Arc.Signed)
-  r->Flags|=0x20;
+  r->Flags|=ROADF_SIGNED;
 if (Data->Arc.Protected)
-  r->Flags|=0x40;
+  r->Flags|=ROADF_RECOVERY;
 if (Data->Arc.Encrypted)
-  r->Flags|=0x80;
+  r->Flags|=ROADF_ENCHEADERS;
 if (Data->Arc.FirstVolume)
-  r->Flags|=0x100;
+  r->Flags|=ROADF_FIRSTVOLUME;
 
 Array CmtDataW;
 if (r->CmtBufSize!=0 && Data->Arc.GetComment())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-09-26 09:37:12.0 +0200
+++ new/unrar/dll.rc2019-10-20 12:54:48.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 80, 2, 3196
-PRODUCTVERSION 5, 80, 2, 3196
+FILEVERSION 5, 80, 3, 3220
+PRODUCTVERSION 5, 80, 3, 3220
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.80.2\0"
-  VALUE "ProductVersion", "5.80.2\0"
+  VALUE "FileVersion", "5.80.3\0"
+  VALUE "ProductVersion", "5.80.3\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2019-09-26 10:35:34.0 +0200
+++ new/unrar/version.hpp   2019-10-20 13:20:11.0 +0200
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR80
-#define RARVER_BETA  2
-#define RARVER_DAY  26
-#define RARVER_MONTH 9
+#define RARVER_BETA  3
+#define RARVER_DAY  20
+#define RARVER_MONTH10
 #define RARVER_YEAR   2019




commit unrar for openSUSE:Factory:NonFree

2019-09-30 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-09-30 16:03:36

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.2352 (New)


Package is "unrar"

Mon Sep 30 16:03:36 2019 rev:82 rq:733670 version:5.8.2

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-09-02 
13:26:57.193294319 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.2352/unrar.changes
2019-09-30 16:03:47.784514453 +0200
@@ -1,0 +2,6 @@
+Fri Sep 27 11:30:14 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.8.2
+  * Based on WinRAR version 5.80 beta 2
+
+---

Old:

  unrarsrc-5.8.1.tar.gz

New:

  unrarsrc-5.8.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.Psif68/_old  2019-09-30 16:03:49.700509354 +0200
+++ /var/tmp/diff_new_pack.Psif68/_new  2019-09-30 16:03:49.704509344 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_8_1
+%define libsuffix 5_8_2
 
 Name:   unrar
-Version:5.8.1
+Version:5.8.2
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.8.1.tar.gz -> unrarsrc-5.8.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2019-08-29 22:34:42.0 +0200
+++ new/unrar/arcread.cpp   2019-09-26 10:35:32.0 +0200
@@ -1256,8 +1256,9 @@
 Raw.Read(NameSize);
 
 char FileName[NM];
-Raw.GetB((byte *)FileName,Min(NameSize,ASIZE(FileName)));
-FileName[NameSize]=0;
+size_t ReadNameSize=Min(NameSize,ASIZE(FileName)-1);
+Raw.GetB((byte *)FileName,ReadNameSize);
+FileName[ReadNameSize]=0;
 IntToExt(FileName,FileName,ASIZE(FileName));
 CharToWide(FileName,FileHead.FileName,ASIZE(FileHead.FileName));
 ConvertNameCase(FileHead.FileName);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-08-29 21:35:30.0 +0200
+++ new/unrar/dll.rc2019-09-26 09:37:12.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 80, 1, 3169
-PRODUCTVERSION 5, 80, 1, 3169
+FILEVERSION 5, 80, 2, 3196
+PRODUCTVERSION 5, 80, 2, 3196
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.80.1\0"
-  VALUE "ProductVersion", "5.80.1\0"
+  VALUE "FileVersion", "5.80.2\0"
+  VALUE "ProductVersion", "5.80.2\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/errhnd.cpp new/unrar/errhnd.cpp
--- old/unrar/errhnd.cpp2019-08-29 22:34:43.0 +0200
+++ new/unrar/errhnd.cpp2019-09-26 10:35:33.0 +0200
@@ -328,7 +328,7 @@
 
 bool ErrorHandler::GetSysErrMsg(wchar *Msg,size_t Size)
 {
-#if !defined(SFX_MODULE) && !defined(SILENT)
+#ifndef SILENT
 #ifdef _WIN_ALL
   int ErrType=GetLastError();
   if (ErrType!=0)
@@ -361,7 +361,7 @@
 return;
 #ifdef _WIN_ALL
   wchar *CurMsg=Msg;
-  while (CurMsg!=NULL)
+  while (CurMsg!=NULL) // Print string with \r\n as several strings to 
multiple lines.
   {
 while (*CurMsg=='\r' || *CurMsg=='\n')
   CurMsg++;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2019-08-29 22:34:43.0 +0200
+++ new/unrar/extract.cpp   2019-09-26 10:35:33.0 +0200
@@ -624,7 +624,6 @@
 CurFile.Prealloc(Arc.FileHead.UnpSize);
 Preallocated=Arc.FileHead.UnpSize;
   }
-
   CurFile.SetAllowDelete(!Cmd->KeepBroken);
 
   bool FileCreateMode=!TestMode && !SkipSolid && Command!='P';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/os.hpp new/unrar/os.hpp
--- old/unrar/os.hpp2019-08-29 22:34:43.0 +0200
+++ new/unrar/os.hpp2019-09-26 10:35:33.0 +0200
@@ -133,7 +133,7 @@
 
 #ifdef _UNIX
 
-#define  NM  2048
+#define NM  2048
 
 #include 
 #include 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 

commit unrar for openSUSE:Factory:NonFree

2019-09-02 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-09-02 13:26:57

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.7948 (New)


Package is "unrar"

Mon Sep  2 13:26:57 2019 rev:81 rq:727212 version:5.8.1

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-04-30 
13:06:55.885544994 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.7948/unrar.changes
2019-09-02 13:26:57.193294319 +0200
@@ -1,0 +2,6 @@
+Fri Aug 30 11:29:26 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.8.1
+  * Based on WinRAR version 5.80 beta 1
+
+---

Old:

  unrarsrc-5.7.5.tar.gz

New:

  unrarsrc-5.8.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.dVAAO1/_old  2019-09-02 13:26:58.881294002 +0200
+++ /var/tmp/diff_new_pack.dVAAO1/_new  2019-09-02 13:26:58.881294002 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_7_5
+%define libsuffix 5_8_1
 
 Name:   unrar
-Version:5.7.5
+Version:5.8.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.0.5-soname.patch ++
--- /var/tmp/diff_new_pack.dVAAO1/_old  2019-09-02 13:26:58.909293996 +0200
+++ /var/tmp/diff_new_pack.dVAAO1/_new  2019-09-02 13:26:58.909293996 +0200
@@ -2,7 +2,7 @@
 ===
 --- unrar.orig/makefile
 +++ unrar/makefile
-@@ -146,7 +146,7 @@ lib:   CXXFLAGS+=$(LIBFLAGS)
+@@ -156,7 +156,7 @@ lib:   CXXFLAGS+=$(LIBFLAGS)
  lib:  clean $(OBJECTS) $(LIB_OBJ)
@rm -f libunrar.so
@rm -f libunrar.a

++ unrarsrc-5.7.5.tar.gz -> unrarsrc-5.8.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arccmt.cpp new/unrar/arccmt.cpp
--- old/unrar/arccmt.cpp2019-04-27 22:05:14.0 +0200
+++ new/unrar/arccmt.cpp2019-08-29 22:34:42.0 +0200
@@ -136,7 +136,7 @@
 bool Archive::ReadCommentData(Array *CmtData)
 {
   Array CmtRaw;
-  if (!ReadSubData(,NULL))
+  if (!ReadSubData(,NULL,false))
 return false;
   size_t CmtSize=CmtRaw.Size();
   CmtRaw.Push(0);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2019-04-27 22:05:14.0 +0200
+++ new/unrar/archive.hpp   2019-08-29 22:34:42.0 +0200
@@ -83,7 +83,7 @@
 int64 GetStartPos();
 void AddSubData(byte *SrcData,uint64 DataSize,File *SrcFile,
  const wchar *Name,uint Flags);
-bool ReadSubData(Array *UnpData,File *DestFile);
+bool ReadSubData(Array *UnpData,File *DestFile,bool TestMode);
 HEADER_TYPE GetHeaderType() {return CurHeaderType;}
 RAROptions* GetRAROptions() {return Cmd;}
 void SetSilentOpen(bool Mode) {SilentOpen=Mode;}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2019-04-27 22:05:14.0 +0200
+++ new/unrar/arcread.cpp   2019-08-29 22:34:42.0 +0200
@@ -268,14 +268,14 @@
 uint FileTime=Raw.Get4();
 hd->UnpVer=Raw.Get1();
 
-// RAR15 did not use the special dictionary size to mark dirs.
-if (hd->UnpVer<20 && (hd->FileAttr & 0x10)!=0)
-  hd->Dir=true;
-
 hd->Method=Raw.Get1()-0x30;
 size_t NameSize=Raw.Get2();
 hd->FileAttr=Raw.Get4();
 
+// RAR15 did not use the special dictionary size to mark dirs.
+if (hd->UnpVer<20 && (hd->FileAttr & 0x10)!=0)
+  hd->Dir=true;
+
 hd->CryptMethod=CRYPT_NONE;
 if (hd->Encrypted)
   switch(hd->UnpVer)
@@ -402,8 +402,8 @@
 if (rmode & 4)
   rlt.Second++;
 rlt.Reminder=0;
-int count=rmode&3;
-for (int J=0;J *UnpData,File *DestFile)
+bool Archive::ReadSubData(Array *UnpData,File *DestFile,bool TestMode)
 {
   if (BrokenHeader)
   {
@@ -1462,6 +1462,7 @@
   SubDataIO.SetPackedSizeToRead(SubHead.PackSize);
   SubDataIO.EnableShowProgress(false);
   SubDataIO.SetFiles(this,DestFile);
+  SubDataIO.SetTestMode(TestMode);
   SubDataIO.UnpVolume=SubHead.SplitAfter;
   SubDataIO.SetSubHeader(,NULL);
   Unpack.SetDestSize(SubHead.UnpSize);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/blake2s.hpp new/unrar/blake2s.hpp
--- 

commit unrar for openSUSE:Factory:NonFree

2019-04-30 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-04-30 13:06:55

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.5536 (New)


Package is "unrar"

Tue Apr 30 13:06:55 2019 rev:80 rq:699461 version:5.7.5

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-04-08 
10:40:54.787303855 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.5536/unrar.changes
2019-04-30 13:06:55.885544994 +0200
@@ -1,0 +2,6 @@
+Mon Apr 29 14:55:33 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.7.5
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.7.4.tar.gz

New:

  unrarsrc-5.7.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.a62gyl/_old  2019-04-30 13:06:56.849544350 +0200
+++ /var/tmp/diff_new_pack.a62gyl/_new  2019-04-30 13:06:56.849544350 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_7_4
+%define libsuffix 5_7_5
 
 Name:   unrar
-Version:5.7.4
+Version:5.7.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.7.4.tar.gz -> unrarsrc-5.7.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2019-04-02 10:05:15.0 +0200
+++ new/unrar/cmddata.cpp   2019-04-27 22:05:15.0 +0200
@@ -123,6 +123,7 @@
 wchar CmdChar=toupperw(*Command);
 bool Add=wcschr(L"AFUM",CmdChar)!=NULL;
 bool Extract=CmdChar=='X' || CmdChar=='E';
+bool Repair=CmdChar=='R' && Command[1]==0;
 if (EndSeparator && !Add)
   wcsncpyz(ExtrPath,Arg,ASIZE(ExtrPath));
 else
@@ -140,8 +141,8 @@
   
ReadTextFile(Arg+1,,false,true,FilelistCharset,true,true,true);
 
 }
-else
-  if (Found && FileData.IsDir && Extract && *ExtrPath==0)
+else // We use 'destpath\' when extracting and reparing.
+  if (Found && FileData.IsDir && (Extract || Repair) && 
*ExtrPath==0)
   {
 wcsncpyz(ExtrPath,Arg,ASIZE(ExtrPath));
 AddEndSlash(ExtrPath,ASIZE(ExtrPath));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-04-02 09:21:53.0 +0200
+++ new/unrar/dll.rc2019-04-27 21:56:58.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 71, 1, 3019
-PRODUCTVERSION 5, 71, 1, 3019
+FILEVERSION 5, 71, 100, 3045
+PRODUCTVERSION 5, 71, 100, 3045
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.71.1\0"
-  VALUE "ProductVersion", "5.71.1\0"
+  VALUE "FileVersion", "5.71.0\0"
+  VALUE "ProductVersion", "5.71.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2019-04-02 10:05:16.0 +0200
+++ new/unrar/extract.cpp   2019-04-27 22:05:16.0 +0200
@@ -261,15 +261,17 @@
 if (HeaderType==HEAD_ENDARC)
   if (Arc.EndArcHead.NextVolume)
   {
-#ifndef NOVOLUME
+#ifdef NOVOLUME
+return false;
+#else
 if (!MergeArchive(Arc,,false,Command))
 {
   ErrHandler.SetErrorCode(RARX_WARNING);
   return false;
 }
-#endif
 Arc.Seek(Arc.CurBlockPos,SEEK_SET);
 return true;
+#endif
   }
   else
 return false;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2019-04-02 10:05:22.0 +0200
+++ new/unrar/version.hpp   2019-04-27 22:05:22.0 +0200
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR71
-#define RARVER_BETA  1
-#define RARVER_DAY   2
+#define RARVER_BETA  0
+#define RARVER_DAY  28
 #define RARVER_MONTH 4
 #define RARVER_YEAR   2019




commit unrar for openSUSE:Factory:NonFree

2019-04-08 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-04-08 10:40:26

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3908 (New)


Package is "unrar"

Mon Apr  8 10:40:26 2019 rev:79 rq:692078 version:5.7.4

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-03-11 
11:18:11.569279380 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.3908/unrar.changes
2019-04-08 10:40:54.787303855 +0200
@@ -1,0 +2,6 @@
+Sun Apr 07 03:31:11 UTC 2019 - sean...@opensuse.org
+
+- Update to version 5.7.4
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.7.3.tar.gz

New:

  unrarsrc-5.7.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.tRRUGg/_old  2019-04-08 10:40:55.483304025 +0200
+++ /var/tmp/diff_new_pack.tRRUGg/_new  2019-04-08 10:40:55.499304029 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_7_3
+%define libsuffix 5_7_4
 
 Name:   unrar
-Version:5.7.3
+Version:5.7.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.7.3.tar.gz -> unrarsrc-5.7.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmdfilter.cpp new/unrar/cmdfilter.cpp
--- old/unrar/cmdfilter.cpp 2019-02-24 20:07:17.0 +0100
+++ new/unrar/cmdfilter.cpp 2019-04-02 10:05:15.0 +0200
@@ -128,16 +128,22 @@
 {
   bool ModeOR=false,TimeMods=false;
   const wchar *S=Mod;
-  for (;wcschr(L"MCAOmcao",*S)!=NULL;S++)
+  // Check if any 'mca' modifiers are present, set OR mode if 'o' is present,
+  // skip modifiers and set S to beginning of time string. Be sure to check
+  // *S!=0, because termination 0 is a part of string for wcschr.
+  for (;*S!=0 && wcschr(L"MCAOmcao",*S)!=NULL;S++)
 if (*S=='o' || *S=='O')
   ModeOR=true;
 else
   TimeMods=true;
 
-  if (!TimeMods)
+  if (!TimeMods) // Assume 'm' if no modifiers are specified.
 Mod=L"m";
 
-  for (;wcschr(L"MCAOmcao",*Mod)!=NULL;Mod++)
+  // Set the specified time for every modifier. Be sure to check *Mod!=0,
+  // because termination 0 is a part of string for wcschr. This check is
+  // important when we set Mod to "m" above.
+  for (;*Mod!=0 && wcschr(L"MCAOmcao",*Mod)!=NULL;Mod++)
 switch(toupperw(*Mod))
 {
   case 'M': 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2019-02-24 20:02:22.0 +0100
+++ new/unrar/dll.rc2019-04-02 09:21:53.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 70, 100, 2983
-PRODUCTVERSION 5, 70, 100, 2983
+FILEVERSION 5, 71, 1, 3019
+PRODUCTVERSION 5, 71, 1, 3019
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.70.0\0"
-  VALUE "ProductVersion", "5.70.0\0"
+  VALUE "FileVersion", "5.71.1\0"
+  VALUE "ProductVersion", "5.71.1\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2019\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2019-02-24 20:07:19.0 +0100
+++ new/unrar/extract.cpp   2019-04-02 10:05:16.0 +0200
@@ -614,10 +614,14 @@
   }
 #endif
 
-  if (!TestMode && !Arc.BrokenHeader &&
-  (Arc.FileHead.PackSize<<11)>Arc.FileHead.UnpSize &&
+  uint64 Preallocated=0;
+  if (!TestMode && !Arc.BrokenHeader && Arc.FileHead.UnpSize>100 &&
+  Arc.FileHead.PackSize*1024>Arc.FileHead.UnpSize &&
   (Arc.FileHead.UnpSize<1 || 
Arc.FileLength()>Arc.FileHead.PackSize))
+  {
 CurFile.Prealloc(Arc.FileHead.UnpSize);
+Preallocated=Arc.FileHead.UnpSize;
+  }
 
   CurFile.SetAllowDelete(!Cmd->KeepBroken);
 
@@ -734,8 +738,9 @@
   (!LinkEntry || Arc.FileHead.RedirType==FSREDIR_FILECOPY && 
LinkSuccess) && 
   (!BrokenFile || Cmd->KeepBroken))
   {
-// We could preallocate more space that really written to broken file.
-if (BrokenFile)
+// We could preallocate more space that really written to broken 

commit unrar for openSUSE:Factory:NonFree

2019-03-11 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-03-11 11:18:01

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833 (New)


Package is "unrar"

Mon Mar 11 11:18:01 2019 rev:78 rq:683688 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-03-01 
16:50:33.449728188 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833/unrar.changes   
2019-03-11 11:18:11.569279380 +0100
@@ -1,0 +2,5 @@
+Mon Mar 11 00:12:10 UTC 2019 - Kyrill Detinov 
+
+- Update the manual page.
+
+---



Other differences:
--
++ unrar.1 ++
--- /var/tmp/diff_new_pack.D22wii/_old  2019-03-11 11:18:13.025278856 +0100
+++ /var/tmp/diff_new_pack.D22wii/_new  2019-03-11 11:18:13.041278851 +0100
@@ -1,6 +1,6 @@
-.\" Copyright (C) 2013-2015 Kyrill Detinov 
+.\" Copyright (C) 2013-2019 Kyrill Detinov 
 .\"
-.TH UNRAR "1" "2015-02-01" "unrar 5.2" "User Commands"
+.TH UNRAR "1" "2019-02-24" "unrar 5.70" "User Commands"
 
 .SH NAME
 unrar \- extract, test, and view RAR archives
@@ -118,6 +118,26 @@
 .B \-r
 Recurse subdirectories.
 .TP
+.BI \-sc chr [obj]
+Specify the \fIcharacter\fR set.
+\'Charset\' parameter is mandatory and can have one of the following values:
+.TP
+u - Unicode UTF-16
+.TP
+f - Unicode UTF-8
+.TP
+a - Native single byte encoding, which is ANSI for Windows
+.TP
+o - OEM (DOS) encoding
+.TP
+\'Objects\' parameter is optional and can have one of the following values:
+.TP
+g - Log files produced by -ilogswitch
+.TP
+l - List files
+.TP
+c - Comment files
+.TP
 .BI \-sl size
 Process files with \fIsize\fR less than specified.
 .TP




commit unrar for openSUSE:Factory:NonFree

2019-03-01 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-03-01 16:50:33

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833 (New)


Package is "unrar"

Fri Mar  1 16:50:33 2019 rev:77 rq:680094 version:5.7.3

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-02-24 
17:21:16.668387735 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833/unrar.changes   
2019-03-01 16:50:33.449728188 +0100
@@ -1,0 +2,7 @@
+Thu Feb 28 11:24:41 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.7.3
+  * Based on WinRAR 5.70
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.7.2.tar.gz

New:

  unrarsrc-5.7.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.lcBhZs/_old  2019-03-01 16:50:34.169727917 +0100
+++ /var/tmp/diff_new_pack.lcBhZs/_new  2019-03-01 16:50:34.173727915 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,16 +12,16 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_7_2
+%define libsuffix 5_7_3
 
 Name:   unrar
-Version:5.7.2
+Version:5.7.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.7.2.tar.gz -> unrarsrc-5.7.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2019-02-21 11:25:08.0 +0100
+++ new/unrar/archive.hpp   2019-02-24 20:07:17.0 +0100
@@ -84,7 +84,7 @@
 void AddSubData(byte *SrcData,uint64 DataSize,File *SrcFile,
  const wchar *Name,uint Flags);
 bool ReadSubData(Array *UnpData,File *DestFile);
-HEADER_TYPE GetHeaderType() {return CurHeaderType;};
+HEADER_TYPE GetHeaderType() {return CurHeaderType;}
 RAROptions* GetRAROptions() {return Cmd;}
 void SetSilentOpen(bool Mode) {SilentOpen=Mode;}
 #if 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcmem.cpp new/unrar/arcmem.cpp
--- old/unrar/arcmem.cpp2018-03-11 07:24:06.0 +0100
+++ new/unrar/arcmem.cpp1970-01-01 01:00:00.0 +0100
@@ -1,67 +0,0 @@
-ArcMemory::ArcMemory()
-{
-  Loaded=false;
-  SeekPos=0;
-}
-
-
-void ArcMemory::Load(const byte *Data,size_t Size)
-{
-  ArcData.Alloc(Size);
-  memcpy([0],Data,Size);
-  Loaded=true;
-  SeekPos=0;
-}
-
-
-bool ArcMemory::Unload()
-{
-  if (!Loaded)
-return false;
-  Loaded=false;
-  return true;
-}
-
-
-bool ArcMemory::Read(void *Data,size_t Size,size_t )
-{
-  if (!Loaded)
-return false;
-  Result=(size_t)Min(Size,ArcData.Size()-SeekPos);
-  memcpy(Data,[(size_t)SeekPos],Result);
-  SeekPos+=Result;
-  return true;
-}
-
-
-bool ArcMemory::Seek(int64 Offset,int Method)
-{
-  if (!Loaded)
-return false;
-  if (Method==SEEK_SET)
-  {
-if (Offset<0)
-  SeekPos=0;
-else
-  SeekPos=Min((uint64)Offset,ArcData.Size());
-  }
-  else
-if (Method==SEEK_CUR || Method==SEEK_END)
-{
-  if (Method==SEEK_END)
-SeekPos=ArcData.Size();
-  SeekPos+=(uint64)Offset;
-  if (SeekPos>ArcData.Size())
-SeekPos=Offset<0 ? 0 : ArcData.Size();
-}
-  return true;
-}
-
-
-bool ArcMemory::Tell(int64 *Pos)
-{
-  if (!Loaded)
-return false;
-  *Pos=SeekPos;
-  return true;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcmem.hpp new/unrar/arcmem.hpp
--- old/unrar/arcmem.hpp2018-03-11 07:24:06.0 +0100
+++ new/unrar/arcmem.hpp1970-01-01 01:00:00.0 +0100
@@ -1,22 +0,0 @@
-#ifndef _RAR_ARCMEM_
-#define _RAR_ARCMEM_
-
-// Memory interface for software fuzzers.
-
-class ArcMemory
-{
-  private:
-bool Loaded;
-Array ArcData;
-uint64 SeekPos;
-  public:
-ArcMemory();
-void Load(const byte *Data,size_t Size);
-bool Unload();
-bool IsLoaded() {return Loaded;}
-bool Read(void *Data,size_t Size,size_t 

commit unrar for openSUSE:Factory:NonFree

2019-02-24 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-02-24 17:21:15

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833 (New)


Package is "unrar"

Sun Feb 24 17:21:15 2019 rev:76 rq:677981 version:5.7.2

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2019-02-01 
11:49:06.092327219 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833/unrar.changes   
2019-02-24 17:21:16.668387735 +0100
@@ -1,0 +2,6 @@
+Thu Feb 21 11:34:43 UTC 2019 - Ismail Dönmez 
+
+- Update to version 5.7.2
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.7.1.tar.gz

New:

  unrarsrc-5.7.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.bhsqIZ/_old  2019-02-24 17:21:17.276387627 +0100
+++ /var/tmp/diff_new_pack.bhsqIZ/_new  2019-02-24 17:21:17.280387626 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_7_1
+%define libsuffix 5_7_2
 
 Name:   unrar
-Version:5.7.1
+Version:5.7.2
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.7.1.tar.gz -> unrarsrc-5.7.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arccmt.cpp new/unrar/arccmt.cpp
--- old/unrar/arccmt.cpp2019-01-28 11:39:40.0 +0100
+++ new/unrar/arccmt.cpp2019-02-21 11:25:08.0 +0100
@@ -34,7 +34,7 @@
 #ifndef SFX_MODULE
 // Old style (RAR 2.9) comment header embedded into the main 
 // archive header.
-if (BrokenHeader)
+if (BrokenHeader || CommHead.HeadSizeRewind();
-  while (Args->GetString(CurMask,ASIZE(CurMask)))
-  {
-wchar *LastMaskChar=PointToLastChar(CurMask);
-bool DirMask=IsPathDiv(*LastMaskChar); // Mask for directories only.
-
-if (Dir)
-{
-  // CheckName is a directory.
-  if (DirMask)
-  {
-// We process the directory and have the directory exclusion mask.
-// So let's convert "mask\" to "mask" and process it normally.
-
-*LastMaskChar=0;
-  }
-  else
-  {
-// REMOVED, we want -npath\* to match empty folders too.
-// If mask has wildcards in name part and does not have the trailing
-// '\' character, we cannot use it for directories.
-  
-// if (IsWildcard(PointToName(CurMask)))
-//  continue;
-  }
-}
-else
-{
-  // If we process a file inside of directory excluded by "dirmask\".
-  // we want to exclude such file too. So we convert "dirmask\" to
-  // "dirmask\*". It is important for operations other than archiving
-  // with -x. When archiving with -x, directory matched by "dirmask\"
-  // is excluded from further scanning.
-
-  if (DirMask)
-wcsncatz(CurMask,L"*",ASIZE(CurMask));
-}
-
-#ifndef SFX_MODULE
-if (CheckFullPath && IsFullPath(CurMask))
-{
-  // We do not need to do the special "*\" processing here, because
-  // unlike the "else" part of this "if", now we convert names to full
-  // format, so they all include the path, which is matched by "*\"
-  // correctly. Moreover, removing "*\" from mask would break
-  // the comparison, because now all names have the path.
-
-  if (*FullName==0)
-ConvertNameToFull(CheckName,FullName,ASIZE(FullName));
-  if (CmpName(CurMask,FullName,MatchMode))
-return true;
-}
-else
-#endif
-{
-  wchar NewName[NM+2],*CurName=Name;
-
-  // Important to convert before "*\" check below, so masks like
-  // d:*\something are processed properly.
-  wchar *CmpMask=ConvertPath(CurMask,NULL,0);
-
-  if (CmpMask[0]=='*' && IsPathDiv(CmpMask[1]))
-  {
-// We want "*\name" to match 'name' not only in subdirectories,
-// but also in the current directory. We convert the name
-// from 'name' to '.\name' to be matched by "*\" part even if it is
-// in current directory.
-NewName[0]='.';
-NewName[1]=CPATHDIVIDER;
-wcsncpyz(NewName+2,Name,ASIZE(NewName)-2);
-CurName=NewName;
-  }
-
-  if (CmpName(CmpMask,CurName,MatchMode))
-return true;
-}
-  }
-  return false;
-}
-
-
-#ifndef SFX_MODULE
-// Now this function performs only one task and only in Windows version:
-// it skips symlinks to directories if -e1024 switch is specified.
-// Symlinks are skipped in ScanTree class, so their entire contents
-// is skipped too. 

commit unrar for openSUSE:Factory:NonFree

2019-02-01 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2019-02-01 11:48:48

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833 (New)


Package is "unrar"

Fri Feb  1 11:48:48 2019 rev:75 rq:670434 version:5.7.1

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-10-15 
09:48:13.323051273 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new.28833/unrar.changes   
2019-02-01 11:49:06.092327219 +0100
@@ -1,0 +2,6 @@
+Wed Jan 30 10:51:39 UTC 2019 - i...@paolostivanin.com
+
+- Update to 5.7.1
+  * No upstream changelog 
+
+---

Old:

  unrarsrc-5.6.8.tar.gz

New:

  unrarsrc-5.7.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.MrYYVW/_old  2019-02-01 11:49:06.668326628 +0100
+++ /var/tmp/diff_new_pack.MrYYVW/_new  2019-02-01 11:49:06.668326628 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_8
+%define libsuffix 5_7_1
 
 Name:   unrar
-Version:5.6.8
+Version:5.7.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.6.8.tar.gz -> unrarsrc-5.7.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arccmt.cpp new/unrar/arccmt.cpp
--- old/unrar/arccmt.cpp2018-10-03 19:07:08.0 +0200
+++ new/unrar/arccmt.cpp2019-01-28 11:39:40.0 +0100
@@ -85,15 +85,18 @@
   byte *UnpData;
   size_t UnpDataSize;
   DataIO.GetUnpackedData(,);
+  if (UnpDataSize>0)
+  {
 #ifdef _WIN_ALL
-  // If we ever decide to extend it to Android, we'll need to alloc
-  // 4x memory for OEM to UTF-8 output here.
-  OemToCharBuffA((char *)UnpData,(char *)UnpData,(DWORD)UnpDataSize);
+// If we ever decide to extend it to Android, we'll need to alloc
+// 4x memory for OEM to UTF-8 output here.
+OemToCharBuffA((char *)UnpData,(char *)UnpData,(DWORD)UnpDataSize);
 #endif
-  CmtData->Alloc(UnpDataSize+1);
-  memset(CmtData->Addr(0),0,CmtData->Size()*sizeof(wchar));
-  CharToWide((char *)UnpData,CmtData->Addr(0),CmtData->Size());
-  CmtData->Alloc(wcslen(CmtData->Addr(0)));
+CmtData->Alloc(UnpDataSize+1);
+memset(CmtData->Addr(0),0,CmtData->Size()*sizeof(wchar));
+CharToWide((char *)UnpData,CmtData->Addr(0),CmtData->Size());
+CmtData->Alloc(wcslen(CmtData->Addr(0)));
+  }
 }
   }
   else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2018-10-03 19:07:09.0 +0200
+++ new/unrar/archive.hpp   2019-01-28 11:39:40.0 +0100
@@ -37,8 +37,7 @@
 void RequestArcPassword();
 void UnexpEndArcMsg();
 void BrokenHeaderMsg();
-void UnkEncVerMsg(const wchar *Name);
-void UnkEncVerMsg();
+void UnkEncVerMsg(const wchar *Name,const wchar *Info);
 bool ReadCommentData(Array *CmtData);
 
 #if !defined(RAR_NOCRYPT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-10-03 19:07:09.0 +0200
+++ new/unrar/arcread.cpp   2019-01-28 11:39:40.0 +0100
@@ -10,7 +10,10 @@
 
   CurBlockPos=Tell();
 
-  size_t ReadSize;
+  // Other developers asked us to initialize it to suppress "may be used
+  // uninitialized" warning in code below in some compilers.
+  size_t ReadSize=0;
+
   switch(Format)
   {
 #ifndef SFX_MODULE
@@ -113,9 +116,9 @@
 }
 
 
-void Archive::UnkEncVerMsg(const wchar *Name)
+void Archive::UnkEncVerMsg(const wchar *Name,const wchar *Info)
 {
-  uiMsg(UIERROR_UNKNOWNENCMETHOD,FileName,Name);
+  uiMsg(UIERROR_UNKNOWNENCMETHOD,FileName,Name,Info);
   ErrHandler.SetErrorCode(RARX_WARNING);
 }
 
@@ -702,7 +705,9 @@
 uint CryptVersion=(uint)Raw.GetV();
 if (CryptVersion>CRYPT_VERSION)
 {
-  UnkEncVerMsg(FileName);
+  wchar Info[20];
+  swprintf(Info,ASIZE(Info),L"h%u",CryptVersion);
+  UnkEncVerMsg(FileName,Info);
   return 0;
 }
 uint EncFlags=(uint)Raw.GetV();
@@ -710,7 +715,9 @@
 CryptHead.Lg2Count=Raw.Get1();
 if (CryptHead.Lg2Count>CRYPT5_KDF_LG2_COUNT_MAX)
 {
-  UnkEncVerMsg(FileName);
+  wchar Info[20];
+  swprintf(Info,ASIZE(Info),L"hc%u",CryptHead.Lg2Count);
+  

commit unrar for openSUSE:Factory:NonFree

2018-10-15 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-10-15 09:47:38

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Mon Oct 15 09:47:38 2018 rev:74 rq:641726 version:5.6.8

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-10-02 
19:49:50.825679713 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-10-15 
09:48:13.323051273 +0200
@@ -1,0 +2,8 @@
+Fri Oct 12 13:24:01 UTC 2018 - Kyrill Detinov 
+
+- Update to 5.6.8.
+  * Based on final RAR 5.61.
+  * Fixed a crash when processing corrupt RAR archives. This issue
+may be also associated with security risks.
+
+---

Old:

  unrarsrc-5.6.7.tar.gz

New:

  unrarsrc-5.6.8.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.dZkANM/_old  2018-10-15 09:48:13.831050708 +0200
+++ /var/tmp/diff_new_pack.dZkANM/_new  2018-10-15 09:48:13.831050708 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_7
+%define libsuffix 5_6_8
 
 Name:   unrar
-Version:5.6.7
+Version:5.6.8
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.6.7.tar.gz -> unrarsrc-5.6.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-09-30 20:05:39.0 +0200
+++ new/unrar/arcread.cpp   2018-10-03 19:07:09.0 +0200
@@ -815,6 +815,8 @@
 // but it was already used in RAR 1.5 and Unpack needs to distinguish
 // them.
 hd->UnpVer=(CompInfo & 0x3f) + 50;
+if (hd->UnpVer!=50) // Only 5.0 compression is known now.
+  hd->UnpVer=VER_UNKNOWN;
 
 hd->HostOS=(byte)Raw.GetV();
 size_t NameSize=(size_t)Raw.GetV();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.cpp new/unrar/dll.cpp
--- old/unrar/dll.cpp   2018-09-30 20:05:40.0 +0200
+++ new/unrar/dll.cpp   2018-10-03 19:07:10.0 +0200
@@ -253,10 +253,7 @@
 D->UnpSize=uint(hd->UnpSize & 0x);
 D->UnpSizeHigh=uint(hd->UnpSize>>32);
 D->HostOS=hd->HSType==HSYS_WINDOWS ? HOST_WIN32:HOST_UNIX;
-if (Data->Arc.Format==RARFMT50)
-  D->UnpVer=Data->Arc.FileHead.UnpVer==0 ? 50 : 200; // If it is not 0, 
just set it to something big.
-else
-  D->UnpVer=Data->Arc.FileHead.UnpVer;
+D->UnpVer=Data->Arc.FileHead.UnpVer;
 D->FileCRC=hd->FileHash.CRC32;
 D->FileTime=hd->mtime.GetDos();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2018-09-30 20:00:39.0 +0200
+++ new/unrar/dll.rc2018-10-03 09:30:49.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 61, 100, 2834
-PRODUCTVERSION 5, 61, 100, 2834
+FILEVERSION 5, 61, 100, 2835
+PRODUCTVERSION 5, 61, 100, 2835
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/headers.hpp new/unrar/headers.hpp
--- old/unrar/headers.hpp   2018-09-30 20:05:42.0 +0200
+++ new/unrar/headers.hpp   2018-10-03 19:07:11.0 +0200
@@ -14,10 +14,11 @@
 #define  SIZEOF_UOHEAD  18
 #define  SIZEOF_STREAMHEAD  26
 
-#define  VER_PACK   29
-#define  VER_PACK5  50 // It is stored as 0, but we subtract 50 
when saving an archive.
-#define  VER_UNPACK 29
-#define  VER_UNPACK550 // It is stored as 0, but we add 50 when 
reading an archive.
+#define  VER_PACK   29U
+#define  VER_PACK5  50U // It is stored as 0, but we subtract 50 
when saving an archive.
+#define  VER_UNPACK 29U
+#define  VER_UNPACK550U // It is stored as 0, but we add 50 when 
reading an archive.
+#define  VER_UNKNOWN  U // Just some large value.
 
 #define  MHD_VOLUME 0x0001U
 
@@ -174,7 +175,7 @@
 struct FileHeader:BlockHeader
 {
   byte HostOS;
-  byte UnpVer;
+  uint UnpVer; // It is 1 byte in RAR29 and bit field in RAR5.
   byte Method;
   union {
 uint FileAttr;
@@ -190,7 +191,7 @@
 
   int64 PackSize;
   int64 UnpSize;
-  int64 MaxSize; // Reserve size bytes for vint of this size.
+  int64 MaxSize; // Reserve packed and unpacked size bytes for vint of this 

commit unrar for openSUSE:Factory:NonFree

2018-10-02 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-10-02 19:49:39

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Tue Oct  2 19:49:39 2018 rev:73 rq:639542 version:5.6.7

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-06-29 
22:37:32.205942636 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-10-02 
19:49:50.825679713 +0200
@@ -1,0 +2,6 @@
+Tue Oct  2 09:23:09 UTC 2018 - Ismail Dönmez 
+
+- Update to version 5.6.7
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.6.5.tar.gz

New:

  unrarsrc-5.6.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.OqJYRH/_old  2018-10-02 19:49:51.565678940 +0200
+++ /var/tmp/diff_new_pack.OqJYRH/_new  2018-10-02 19:49:51.565678940 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_5
+%define libsuffix 5_6_7
 
 Name:   unrar
-Version:5.6.5
+Version:5.6.7
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.6.5.tar.gz -> unrarsrc-5.6.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-06-24 17:10:30.0 +0200
+++ new/unrar/arcread.cpp   2018-09-30 20:05:39.0 +0200
@@ -566,7 +566,7 @@
 // We repeat the password request only for manually entered passwords
 // and not for -p. Wrong password can be intentionally provided
 // in -p to not stop batch processing for encrypted archives.
-bool GlobalPassword=Cmd->Password.IsSet();
+bool GlobalPassword=Cmd->Password.IsSet() || uiIsGlobalPasswordSet();
 
 while (true) // Repeat the password prompt for wrong passwords.
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2018-06-24 17:02:05.0 +0200
+++ new/unrar/dll.rc2018-09-30 20:00:39.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 60, 100, 2736
-PRODUCTVERSION 5, 60, 100, 2736
+FILEVERSION 5, 61, 100, 2834
+PRODUCTVERSION 5, 61, 100, 2834
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.60.0\0"
-  VALUE "ProductVersion", "5.60.0\0"
+  VALUE "FileVersion", "5.61.0\0"
+  VALUE "ProductVersion", "5.61.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2018\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2018-06-24 17:10:31.0 +0200
+++ new/unrar/extract.cpp   2018-09-30 20:05:41.0 +0200
@@ -161,7 +161,7 @@
 // This size is necessary to display the correct total progress indicator.
 
 wchar NextName[NM];
-wcscpy(NextName,Arc.FileName);
+wcsncpyz(NextName,Arc.FileName,ASIZE(NextName));
 
 while (true)
 {
@@ -323,6 +323,7 @@
 
 if (wcsicomp(ArcName,CurVolName)!=0 && FileExist(ArcName))
 {
+  wcsncpyz(Cmd->ArcName,ArcName,ASIZE(ArcName)); // For GUI "Delete 
archive after extraction".
   // If first volume name does not match the current name and if such
   // volume name really exists, let's unpack from this first volume.
   Repeat=true;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/options.hpp new/unrar/options.hpp
--- old/unrar/options.hpp   2018-06-24 17:10:31.0 +0200
+++ new/unrar/options.hpp   2018-09-30 20:05:42.0 +0200
@@ -12,11 +12,7 @@
   EXCL_SKIPWHOLEPATH,  // -ep  (exclude the path completely)
   EXCL_BASEPATH,   // -ep1 (exclude the base part of path)
   EXCL_SAVEFULLPATH,   // -ep2 (the full path without the disk letter)
-  EXCL_ABSPATH,// -ep3 (the full path with the disk letter)
-
-  EXCL_SKIPABSPATH // Works as EXCL_BASEPATH for fully qualified paths
-   // and as EXCL_UNCHANGED for relative paths.
-   // Used by WinRAR GUI only.
+  EXCL_ABSPATH // -ep3 (the full path with the disk letter)
 };
 
 

commit unrar for openSUSE:Factory:NonFree

2018-06-29 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-06-29 22:37:31

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Fri Jun 29 22:37:31 2018 rev:72 rq:619129 version:5.6.5

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-06-18 
13:50:56.055805812 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-06-29 
22:37:32.205942636 +0200
@@ -1,0 +2,6 @@
+Tue Jun 26 09:41:59 UTC 2018 - idon...@suse.com
+
+- Update to version 5.6.5
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.6.4.tar.gz

New:

  unrarsrc-5.6.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.XQFdCe/_old  2018-06-29 22:37:32.621942275 +0200
+++ /var/tmp/diff_new_pack.XQFdCe/_new  2018-06-29 22:37:32.621942275 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_4
+%define libsuffix 5_6_5
 
 Name:   unrar
-Version:5.6.4
+Version:5.6.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.6.4.tar.gz -> unrarsrc-5.6.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2018-05-13 21:08:38.0 +0200
+++ new/unrar/archive.cpp   2018-06-24 17:10:30.0 +0200
@@ -216,7 +216,8 @@
 
   if (BrokenHeader || !StartFound) // Main archive header is corrupt or 
missing.
   {
-uiMsg(UIERROR_MHEADERBROKEN,FileName);
+if (!FailedHeaderDecryption) // If not reported a wrong password already.
+  uiMsg(UIERROR_MHEADERBROKEN,FileName);
 if (!EnableBroken)
   return false;
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-05-13 21:08:39.0 +0200
+++ new/unrar/arcread.cpp   2018-06-24 17:10:30.0 +0200
@@ -563,6 +563,11 @@
   return 0;
 }
 
+// We repeat the password request only for manually entered passwords
+// and not for -p. Wrong password can be intentionally provided
+// in -p to not stop batch processing for encrypted archives.
+bool GlobalPassword=Cmd->Password.IsSet();
+
 while (true) // Repeat the password prompt for wrong passwords.
 {
   RequestArcPassword();
@@ -572,11 +577,23 @@
   // Verify password validity.
   if (CryptHead.UsePswCheck && 
memcmp(PswCheck,CryptHead.PswCheck,SIZE_PSWCHECK)!=0)
   {
-// This message is used by Android GUI and Windows GUI and SFX to
-// reset cached passwords. Update appropriate code if changed.
-uiMsg(UIWAIT_BADPSW,FileName);
+if (GlobalPassword) // For -p or Ctrl+P.
+{
+  // This message is used by Android GUI to reset cached passwords.
+  // Update appropriate code if changed.
+  uiMsg(UIERROR_BADPSW,FileName);
+  FailedHeaderDecryption=true;
+  ErrHandler.SetErrorCode(RARX_BADPWD);
+  return 0;
+}
+else // For passwords entered manually.
+{
+  // This message is used by Android GUI and Windows GUI and SFX to
+  // reset cached passwords. Update appropriate code if changed.
+  uiMsg(UIWAIT_BADPSW,FileName);
+  Cmd->Password.Clean();
+}
 
-Cmd->Password.Clean();
 #ifdef RARDLL
 // Avoid new requests for unrar.dll to prevent the infinite loop
 // if app always returns the same password.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2018-05-13 21:05:03.0 +0200
+++ new/unrar/dll.rc2018-06-24 17:02:05.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 60, 4, 2695
-PRODUCTVERSION 5, 60, 4, 2695
+FILEVERSION 5, 60, 100, 2736
+PRODUCTVERSION 5, 60, 100, 2736
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.60.4\0"
-  VALUE "ProductVersion", "5.60.4\0"
+  VALUE "FileVersion", "5.60.0\0"
+  VALUE "ProductVersion", "5.60.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2018\0"
   VALUE 

commit unrar for openSUSE:Factory:NonFree

2018-06-18 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-06-18 13:50:53

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Mon Jun 18 13:50:53 2018 rev:71 rq:614001 version:5.6.4

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-04-30 
22:59:46.358635265 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-06-18 
13:50:56.055805812 +0200
@@ -1,0 +2,6 @@
+Mon Jun  4 14:30:23 UTC 2018 - idon...@suse.com
+
+- Update to version 5.6.4
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.6.3.tar.gz

New:

  unrarsrc-5.6.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.8OwBd4/_old  2018-06-18 13:50:57.411755692 +0200
+++ /var/tmp/diff_new_pack.8OwBd4/_new  2018-06-18 13:50:57.415755545 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_3
+%define libsuffix 5_6_4
 
 Name:   unrar
-Version:5.6.3
+Version:5.6.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:NonFree

++ unrarsrc-5.6.3.tar.gz -> unrarsrc-5.6.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2018-04-21 16:54:03.0 +0200
+++ new/unrar/archive.hpp   2018-05-13 21:08:38.0 +0200
@@ -20,6 +20,9 @@
   ASDF_CRYPTIFHEADERS = 8  // Encrypt data after subheader only in -hp mode.
 };
 
+// RAR5 headers must not exceed 2 MB.
+#define MAX_HEADER_SIZE_RAR5 0x20
+
 class Archive:public File
 {
   private:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-04-21 16:54:03.0 +0200
+++ new/unrar/arcread.cpp   2018-05-13 21:08:39.0 +0200
@@ -595,8 +595,8 @@
   }
 
   // Header size must not occupy more than 3 variable length integer bytes
-  // resulting in 2 MB maximum header size, so here we read 4 byte CRC32
-  // followed by 3 bytes or less of header size.
+  // resulting in 2 MB maximum header size (MAX_HEADER_SIZE_RAR5),
+  // so here we read 4 byte CRC32 followed by 3 bytes or less of header size.
   const size_t FirstReadSize=7; // Smallest possible block size.
   if (Raw.Read(FirstReadSize)
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 60, 3, 2672
-PRODUCTVERSION 5, 60, 3, 2672
+FILEVERSION 5, 60, 4, 2695
+PRODUCTVERSION 5, 60, 4, 2695
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.60.3\0"
-  VALUE "ProductVersion", "5.60.3\0"
+  VALUE "FileVersion", "5.60.4\0"
+  VALUE "ProductVersion", "5.60.4\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2018\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2018-04-21 16:54:04.0 +0200
+++ new/unrar/extract.cpp   2018-05-13 21:08:40.0 +0200
@@ -83,7 +83,7 @@
   FirstFile=true;
 #endif
 
-  PasswordAll=(Cmd->Password.IsSet());
+  GlobalPassword=Cmd->Password.IsSet();
 
   DataIO.UnpVolume=false;
 
@@ -468,7 +468,7 @@
   memcmp(Arc.FileHead.PswCheck,PswCheck,SIZE_PSWCHECK)!=0 &&
   !Arc.BrokenHeader)
   {
-if (PasswordAll) // For -p or Ctrl+P.
+if (GlobalPassword) // For -p or Ctrl+P.
 {
   // This message is used by Android GUI to reset cached passwords.
   // Update appropriate code if changed.
@@ -968,7 +968,7 @@
   }
 #if !defined(SILENT)
   else
-if (!PasswordAll && !Arc.FileHead.Solid)
+if (!GlobalPassword && !Arc.FileHead.Solid)
 {
   eprintf(St(MUseCurPsw),ArcFileName);
   switch(Cmd->AllYes ? 1 : Ask(St(MYesNoAll)))
@@ -980,7 +980,7 @@
 return false;
   break;
 case 3:
-  PasswordAll=true;
+  GlobalPassword=true;
   break;
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.hpp new/unrar/extract.hpp
--- old/unrar/extract.hpp   2018-04-21 16:54:04.0 +0200
+++ new/unrar/extract.hpp   

commit unrar for openSUSE:Factory:NonFree

2018-04-30 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-04-30 22:59:06

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Mon Apr 30 22:59:06 2018 rev:70 rq:600352 version:5.6.3

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2018-03-22 
12:38:55.556813785 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-04-30 
22:59:46.358635265 +0200
@@ -1,0 +2,17 @@
+Tue Apr 24 09:21:51 UTC 2018 - idon...@suse.com
+
+- Update to version 5.6.3
+  * No upstream changelog
+
+---
+Fri Apr 13 09:16:33 UTC 2018 - mplus...@suse.com
+
+- Cleanup spec file with spec-clener
+
+---
+Tue Apr  3 13:57:14 UTC 2018 - idon...@suse.com
+
+- Update to version 5.6.2
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.6.1.tar.gz

New:

  unrarsrc-5.6.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.3m7i9g/_old  2018-04-30 22:59:46.994612058 +0200
+++ /var/tmp/diff_new_pack.3m7i9g/_new  2018-04-30 22:59:46.998611913 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,19 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_6_1
+%define libsuffix 5_6_3
 
 Name:   unrar
-Version:5.6.1
+Version:5.6.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
-License:SUSE-NonFree
+License:NonFree
 Group:  Productivity/Archiving/Compression
-Url:http://www.rarlab.com
+URL:http://www.rarlab.com
 Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
 Patch1: unrarsrc-5.0.5-soname.patch
 BuildRequires:  gcc-c++
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 The unRAR utility is a freeware program distributed with source code
@@ -70,32 +69,33 @@
 CXXFLAGS="%{optflags} -fPIC -fno-strict-aliasing" STRIP=true
 
 %install
-install -Dm 0755 unrar %{buildroot}%{_bindir}/unrar
-install -Dm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/unrar.1
-install -Dm 0755 libunrar.so.%{version} \
+install -Dpm 0755 unrar \
+  %{buildroot}%{_bindir}/unrar
+install -Dpm 0644 %{SOURCE1} \
+  %{buildroot}%{_mandir}/man1/unrar.1
+install -Dpm 0755 libunrar.so.%{version} \
 %{buildroot}%{_libdir}/libunrar.so.%{version}
-install -Dm 0644 dll.hpp %{buildroot}/%{_includedir}/unrar/dll.hpp
+install -Dpm 0644 dll.hpp \
+  %{buildroot}/%{_includedir}/unrar/dll.hpp
 ln -s libunrar.so.%{version} \
 %{buildroot}%{_libdir}/libunrar.so
 
 %post -n libunrar%{libsuffix} -p /sbin/ldconfig
-
 %postun -n libunrar%{libsuffix} -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
-%doc acknow.txt license.txt readme.txt
+%license license.txt
+%doc acknow.txt readme.txt
 %{_bindir}/unrar
-%{_mandir}/man1/unrar.1%{ext_man}
+%{_mandir}/man1/unrar.1%{?ext_man}
 
 %files -n libunrar%{libsuffix}
-%defattr(-,root,root)
-%doc license.txt
+%license license.txt
 %{_libdir}/*.so.%{version}
 
 %files -n libunrar-devel
-%defattr(-,root,root)
-%doc acknow.txt license.txt readme.txt
+%license license.txt
+%doc acknow.txt readme.txt
 %{_includedir}/*
 %{_libdir}/*.so
 

++ unrarsrc-5.6.1.tar.gz -> unrarsrc-5.6.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2018-03-11 07:24:36.0 +0100
+++ new/unrar/arcread.cpp   2018-04-21 16:54:03.0 +0200
@@ -577,7 +577,15 @@
 uiMsg(UIWAIT_BADPSW,FileName);
 
 Cmd->Password.Clean();
-continue;
+#ifdef RARDLL
+// Avoid new requests for unrar.dll to prevent the infinite loop
+// if app always returns the same password.
+ErrHandler.SetErrorCode(RARX_BADPWD);
+Cmd->DllError=ERAR_BAD_PASSWORD;
+ErrHandler.Exit(RARX_BADPWD);
+#else
+continue; // Request a password again.
+#endif
   }
   break;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp  

commit unrar for openSUSE:Factory:NonFree

2018-03-22 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2018-03-22 12:38:53

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Thu Mar 22 12:38:53 2018 rev:69 rq:589678 version:5.6.1

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2017-08-16 
16:29:21.681596858 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2018-03-22 
12:38:55.556813785 +0100
@@ -1,0 +2,24 @@
+Tue Mar 20 14:43:31 UTC 2018 - kstreit...@suse.com
+
+- the following issues are completely fixed in the current unrar
+  release [bsc#1054038]:
+  * UnRAR before 5.5.7 allows remote attackers to bypass a
+directory-traversal protection mechanism via vectors involving
+a symlink to the . directory, a symlink to the .. directory,
+and a regular file [CVE-2017-12938]
+  * UnRAR before 5.5.7 has an out-of-bounds read in
+the EncodeFileName::Decode call within the
+Archive::ReadHeader15 function [CVE-2017-12940]
+  * UnRAR before 5.5.7 has an out-of-bounds read in
+the Unpack::Unpack20 function [CVE-2017-12941]
+  * UnRAR before 5.5.7 has a buffer overflow in the Unpack::LongLZ
+function [CVE-2017-12942]
+- it also fixes conditional jumps mentioned in [bsc#1046882]
+
+---
+Mon Mar 12 19:30:29 UTC 2018 - mvet...@suse.com
+
+- Update to 5.6.1:
+  * No upstream changelog
+
+---

Old:

  unrarsrc-5.5.8.tar.gz

New:

  unrarsrc-5.6.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.njl4uQ/_old  2018-03-22 12:38:56.320786310 +0100
+++ /var/tmp/diff_new_pack.njl4uQ/_new  2018-03-22 12:38:56.320786310 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_5_8
+%define libsuffix 5_6_1
 
 Name:   unrar
-Version:5.5.8
+Version:5.6.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.5.8.tar.gz -> unrarsrc-5.6.1.tar.gz ++
 2473 lines of diff (skipped)




commit unrar for openSUSE:Factory:NonFree

2017-08-16 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2017-08-16 16:25:11

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Wed Aug 16 16:25:11 2017 rev:68 rq:516790 version:5.5.8

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2017-08-01 
09:26:13.872493598 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2017-08-16 
16:29:21.681596858 +0200
@@ -1,0 +2,6 @@
+Mon Aug 14 10:44:21 UTC 2017 - idon...@suse.com
+
+- Update to version 5.5.8
+  * Based on rar 5.50 release
+
+---

Old:

  unrarsrc-5.5.7.tar.gz

New:

  unrarsrc-5.5.8.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.q190nF/_old  2017-08-16 16:29:52.997201106 +0200
+++ /var/tmp/diff_new_pack.q190nF/_new  2017-08-16 16:29:53.001200545 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_5_7
+%define libsuffix 5_5_8
 
 Name:   unrar
-Version:5.5.7
+Version:5.5.8
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.5.7.tar.gz -> unrarsrc-5.5.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2017-07-25 10:58:41.0 +0200
+++ new/unrar/dll.rc2017-08-11 15:53:04.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 50, 6, 2401
-PRODUCTVERSION 5, 50, 6, 2401
+FILEVERSION 5, 50, 100, 2418
+PRODUCTVERSION 5, 50, 100, 2418
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.50.6\0"
-  VALUE "ProductVersion", "5.50.6\0"
+  VALUE "FileVersion", "5.50.0\0"
+  VALUE "ProductVersion", "5.50.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2017\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2017-07-25 11:04:34.0 +0200
+++ new/unrar/version.hpp   2017-08-11 15:56:27.0 +0200
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR50
-#define RARVER_BETA  6
-#define RARVER_DAY  25
-#define RARVER_MONTH 7
+#define RARVER_BETA  0
+#define RARVER_DAY  11
+#define RARVER_MONTH 8
 #define RARVER_YEAR   2017




commit unrar for openSUSE:Factory:NonFree

2017-08-01 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2017-08-01 09:25:47

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Tue Aug  1 09:25:47 2017 rev:67 rq:513151 version:5.5.7

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2017-07-04 
09:12:36.879874950 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2017-08-01 
09:26:13.872493598 +0200
@@ -1,0 +2,7 @@
+Mon Jul 31 09:08:09 UTC 2017 - idon...@suse.com
+
+- Update to version 5.5.7
+  * "Checksum error" could be mistakenly reported for some valid
+GZIP archives.
+
+---

Old:

  unrarsrc-5.5.6.tar.gz

New:

  unrarsrc-5.5.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.bWIRWW/_old  2017-08-01 09:26:14.608389884 +0200
+++ /var/tmp/diff_new_pack.bWIRWW/_new  2017-08-01 09:26:14.612389321 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_5_6
+%define libsuffix 5_5_7
 
 Name:   unrar
-Version:5.5.6
+Version:5.5.7
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.5.6.tar.gz -> unrarsrc-5.5.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arccmt.cpp new/unrar/arccmt.cpp
--- old/unrar/arccmt.cpp2017-07-02 09:52:34.0 +0200
+++ new/unrar/arccmt.cpp2017-07-25 11:04:29.0 +0200
@@ -7,7 +7,7 @@
   SaveFilePos SavePos(*this);
 
 #ifndef SFX_MODULE
-  ushort CmtLength;
+  uint CmtLength;
   if (Format==RARFMT14)
   {
 Seek(SFXSize+SIZEOF_MAINHEAD14,SEEK_SET);
@@ -52,7 +52,7 @@
 if (Format==RARFMT14)
 {
 #ifdef RAR_NOCRYPT
-  return(false);
+  return false;
 #else
   UnpCmtLength=GetByte();
   UnpCmtLength+=(GetByte()<<8);
@@ -96,6 +96,8 @@
   }
   else
   {
+if (CmtLength==0)
+  return false;
 Array CmtRaw(CmtLength);
 Read([0],CmtLength);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2017-07-02 09:52:34.0 +0200
+++ new/unrar/arcread.cpp   2017-07-25 11:04:29.0 +0200
@@ -308,17 +308,17 @@
 
 if (FileBlock)
 {
+  *hd->FileName=0;
   if ((hd->Flags & LHD_UNICODE)!=0)
   {
 EncodeFileName NameCoder;
 size_t Length=strlen(FileName);
 Length++;
-NameCoder.Decode(FileName,(byte *)FileName+Length,
- NameSize-Length,hd->FileName,
- ASIZE(hd->FileName));
+if (ReadNameSize>Length)
+  NameCoder.Decode(FileName,(byte *)FileName+Length,
+   ReadNameSize-Length,hd->FileName,
+   ASIZE(hd->FileName));
   }
-  else
-*hd->FileName=0;
 
   if (*hd->FileName==0)
 ArcCharToWide(FileName,hd->FileName,ASIZE(hd->FileName),ACTW_OEM);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2017-07-02 09:48:59.0 +0200
+++ new/unrar/dll.rc2017-07-25 10:58:41.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 50, 5, 2378
-PRODUCTVERSION 5, 50, 5, 2378
+FILEVERSION 5, 50, 6, 2401
+PRODUCTVERSION 5, 50, 6, 2401
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.50.5\0"
-  VALUE "ProductVersion", "5.50.5\0"
+  VALUE "FileVersion", "5.50.6\0"
+  VALUE "ProductVersion", "5.50.6\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2017\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/encname.cpp new/unrar/encname.cpp
--- old/unrar/encname.cpp   2017-07-02 09:52:35.0 +0200
+++ new/unrar/encname.cpp   2017-07-25 11:04:30.0 +0200
@@ -15,31 +15,43 @@
 size_t MaxDecSize)
 {
   size_t EncPos=0,DecPos=0;
-  byte HighByte=EncName[EncPos++];
+  byte HighByte=EncPos=EncSize)
+break;
   

commit unrar for openSUSE:Factory:NonFree

2017-07-04 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2017-07-04 09:12:29

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Tue Jul  4 09:12:29 2017 rev:66 rq:507803 version:5.5.6

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2017-06-28 
10:38:05.192096936 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2017-07-04 
09:12:36.879874950 +0200
@@ -1,0 +2,6 @@
+Mon Jul  3 12:09:04 UTC 2017 - idon...@suse.com
+
+- Update to version 5.5.6
+  * No changelog upstream
+
+---

Old:

  unrarsrc-5.5.5.tar.gz

New:

  unrarsrc-5.5.6.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.33bn1a/_old  2017-07-04 09:12:41.239261887 +0200
+++ /var/tmp/diff_new_pack.33bn1a/_new  2017-07-04 09:12:41.243261324 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_5_5
+%define libsuffix 5_5_6
 
 Name:   unrar
-Version:5.5.5
+Version:5.5.6
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.5.5.tar.gz -> unrarsrc-5.5.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/crypt5.cpp new/unrar/crypt5.cpp
--- old/unrar/crypt5.cpp2017-06-16 09:02:22.0 +0200
+++ new/unrar/crypt5.cpp2017-07-02 09:52:35.0 +0200
@@ -67,10 +67,10 @@
 sha256_process(, KeyBuf, Sha256BlockSize); // Hash padded key.
   }
 
-  if (ICtxOpt!=NULL && !*SetROpt) // Store constant context for further reuse.
+  if (RCtxOpt!=NULL && !*SetROpt) // Store constant context for further reuse.
   {
 *RCtxOpt=RCtx;
-*SetIOpt=true;
+*SetROpt=true;
   }
 
   sha256_process(, IDig, SHA256_DIGEST_SIZE); // Hash internal digest.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2017-06-16 08:56:20.0 +0200
+++ new/unrar/dll.rc2017-07-02 09:48:59.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 50, 4, 2362
-PRODUCTVERSION 5, 50, 4, 2362
+FILEVERSION 5, 50, 5, 2378
+PRODUCTVERSION 5, 50, 5, 2378
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.50.4\0"
-  VALUE "ProductVersion", "5.50.4\0"
+  VALUE "FileVersion", "5.50.5\0"
+  VALUE "ProductVersion", "5.50.5\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2017\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extinfo.cpp new/unrar/extinfo.cpp
--- old/unrar/extinfo.cpp   2017-06-16 09:02:22.0 +0200
+++ new/unrar/extinfo.cpp   2017-07-02 09:52:35.0 +0200
@@ -74,34 +74,63 @@
 
 
 
-bool IsRelativeSymlinkSafe(const wchar *SrcName,const wchar *TargetName)
+// Calculate a number of path components except \. and \..
+static int CalcAllowedDepth(const wchar *Name)
 {
-  if (IsFullRootPath(SrcName))
-return false;
   int AllowedDepth=0;
-  while (*SrcName!=0)
+  while (*Name!=0)
   {
-if (IsPathDiv(SrcName[0]) && SrcName[1]!=0 && !IsPathDiv(SrcName[1]))
+if (IsPathDiv(Name[0]) && Name[1]!=0 && !IsPathDiv(Name[1]))
 {
-  bool Dot=SrcName[1]=='.' && (IsPathDiv(SrcName[2]) || SrcName[2]==0);
-  bool Dot2=SrcName[1]=='.' && SrcName[2]=='.' && (IsPathDiv(SrcName[3]) 
|| SrcName[3]==0);
+  bool Dot=Name[1]=='.' && (IsPathDiv(Name[2]) || Name[2]==0);
+  bool Dot2=Name[1]=='.' && Name[2]=='.' && (IsPathDiv(Name[3]) || 
Name[3]==0);
   if (!Dot && !Dot2)
 AllowedDepth++;
 }
-SrcName++;
+Name++;
   }
-  if (IsFullRootPath(TargetName)) // Catch root dir based /path/file paths.
+  return AllowedDepth;
+}
+
+
+bool IsRelativeSymlinkSafe(CommandData *Cmd,const wchar *SrcName,const wchar 
*PrepSrcName,const wchar *TargetName)
+{
+  // Catch root dir based /path/file paths also as stuff like \\?\.
+  // Do not check PrepSrcName here, it can be root based if destination path
+  // is a root based.
+  if (IsFullRootPath(SrcName) || IsFullRootPath(TargetName))
 return false;
+  
+  // We could check just prepared src name, but for extra safety
+  // we check both 

commit unrar for openSUSE:Factory:NonFree

2017-06-28 Thread root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2017-06-28 10:37:58

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Wed Jun 28 10:37:58 2017 rev:65 rq:506442 version:5.5.5

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-08-20 
12:27:37.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2017-06-28 
10:38:05.192096936 +0200
@@ -1,0 +2,28 @@
+Wed Jun 21 09:52:52 UTC 2017 - sebix+novell@sebix.at
+
+- Update to version 5.5.5
+  * fixes VMSF_DELTA memory corruption (boo#1045315) CVE-2012-6706
+see 
https://bugs.chromium.org/p/project-zero/issues/detail?id=1286=1=unrar=2
+
+---
+Mon Jun 12 09:08:35 UTC 2017 - idon...@suse.com
+
+- Update to version 5.5.4
+  * No changelog upstream.
+
+---
+Mon May 1 17:50:44 UTC 2017 - idon...@suse.com
+
+- Update to version 5.5.1
+  * Based on RAR 5.50 beta1
+  * Added extraction support for .LZ archives created by Lzip
+compressor.
+  * Modern TAR tools can store high precision file times, lengthy
+file names and large file sizes in special PAX extended headers
+inside of TAR archive. Now WinRAR supports such PAX headers
+and uses them when extracting TAR archives.
+  * unrar no longer fails to unpack files in ZIP archives compressed
+with XZ algorithm and encrypted with AES
+- Remove unrarsrc-3.9-types.patch, fixed upstream.
+
+---

Old:

  unrarsrc-3.9-types.patch
  unrarsrc-5.4.5.tar.gz

New:

  unrarsrc-5.5.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.nxZcfm/_old  2017-06-28 10:38:06.503911352 +0200
+++ /var/tmp/diff_new_pack.nxZcfm/_new  2017-06-28 10:38:06.507910786 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_4_5
+%define libsuffix 5_5_5
 
 Name:   unrar
-Version:5.4.5
+Version:5.5.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree
@@ -29,8 +29,7 @@
 Url:http://www.rarlab.com
 Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
-Patch1: unrarsrc-3.9-types.patch
-Patch2: unrarsrc-5.0.5-soname.patch
+Patch1: unrarsrc-5.0.5-soname.patch
 BuildRequires:  gcc-c++
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -58,8 +57,8 @@
 
 %prep
 %setup -q -n %{name}
-%patch1
-%patch2 -p1
+%patch1 -p1
+
 sed -i 's/\r$//' *.txt
 
 %build

++ unrarsrc-5.0.5-soname.patch ++
--- /var/tmp/diff_new_pack.nxZcfm/_old  2017-06-28 10:38:06.563902865 +0200
+++ /var/tmp/diff_new_pack.nxZcfm/_new  2017-06-28 10:38:06.563902865 +0200
@@ -2,12 +2,12 @@
 ===
 --- unrar.orig/makefile
 +++ unrar/makefile
-@@ -133,7 +133,7 @@ lib:   WHAT=RARDLL
- lib:  CXXFLAGS+=$(LIBFLAGS)
+@@ -146,7 +146,7 @@ lib:   CXXFLAGS+=$(LIBFLAGS)
  lib:  clean $(OBJECTS) $(LIB_OBJ)
@rm -f libunrar.so
+   @rm -f libunrar.a
 -  $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
 +  $(LINK) -shared -Wl,-soname,libunrar.so.$(libversion) -o 
libunrar.so.$(libversion) $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
+   $(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
  
  install-unrar:
-   install -D unrar $(DESTDIR)/bin/unrar

++ unrarsrc-5.4.5.tar.gz -> unrarsrc-5.5.5.tar.gz ++
 8956 lines of diff (skipped)




commit unrar for openSUSE:Factory:NonFree

2016-08-20 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-08-20 12:27:36

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-07-24 
19:53:58.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-08-20 
12:27:37.0 +0200
@@ -1,0 +2,18 @@
+Thu Aug 18 20:24:24 UTC 2016 - lazy.k...@opensuse.org
+
+- Update to 5.4.5.
+  * Based on final RAR 5.40.
+  * If RAR recovery volumes (.rev files) are present in the same
+folder as usual RAR volumes, archive test command verifies .rev
+contents after completing testing .rar files.
+If you wish to test only .rev files without checking .rar
+volumes, you can run: `unrar t arcname.part1.rev`.
+  * If -p switch is used without optional  parameter, a
+password can be also set with file redirection or pipe.
+  * unrar treats 'arcname.partN' as 'arcname.partN.rar' if
+'arcname.partN' does not exist and 'arcname.part#.rar' exists.
+For example, it is allowed to run:
+`unrar x arcname.part01` to start extraction from
+'arcname.part01.rar'.
+
+---

Old:

  unrarsrc-5.4.3.tar.gz

New:

  unrarsrc-5.4.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.gtP5tt/_old  2016-08-20 12:27:39.0 +0200
+++ /var/tmp/diff_new_pack.gtP5tt/_new  2016-08-20 12:27:39.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_4_3
+%define libsuffix 5_4_5
 
 Name:   unrar
-Version:5.4.3
+Version:5.4.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.4.3.tar.gz -> unrarsrc-5.4.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2016-07-21 10:54:58.0 +0200
+++ new/unrar/dll.rc2016-08-14 21:14:25.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 40, 4, 2032
-PRODUCTVERSION 5, 40, 4, 2032
+FILEVERSION 5, 40, 100, 2057
+PRODUCTVERSION 5, 40, 100, 2057
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.40.4\0"
-  VALUE "ProductVersion", "5.40.4\0"
+  VALUE "FileVersion", "5.40.0\0"
+  VALUE "ProductVersion", "5.40.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2016\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/getbits.cpp new/unrar/getbits.cpp
--- old/unrar/getbits.cpp   2016-07-21 10:59:36.0 +0200
+++ new/unrar/getbits.cpp   2016-08-14 21:17:47.0 +0200
@@ -38,7 +38,7 @@
 uint BitInput::fgetbits()
 {
   // Function wrapped version of inline getbits to save code size.
-  return(getbits());
+  return getbits();
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/getbits.hpp new/unrar/getbits.hpp
--- old/unrar/getbits.hpp   2016-07-21 10:59:36.0 +0200
+++ new/unrar/getbits.hpp   2016-08-14 21:17:47.0 +0200
@@ -37,7 +37,7 @@
   BitField|=(uint)InBuf[InAddr+1] << 8;
   BitField|=(uint)InBuf[InAddr+2];
   BitField >>= (8-InBit);
-  return(BitField & 0x);
+  return BitField & 0x;
 }
 
 // Return 32 bits from current position in the buffer.
@@ -50,7 +50,7 @@
   BitField|=(uint)InBuf[InAddr+3];
   BitField <<= InBit;
   BitField|=(uint)InBuf[InAddr+4] >> (8-InBit);
-  return(BitField & 0x);
+  return BitField & 0x;
 }
 
 void faddbits(uint Bits);
@@ -60,7 +60,7 @@
 // if buffer will be overflown.
 bool Overflow(uint IncPtr) 
 {
-  return(InAddr+IncPtr>=MAX_SIZE);
+  return InAddr+IncPtr>=MAX_SIZE;
 }
 
 void SetExternalBuffer(byte *Buf);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/timefn.cpp new/unrar/timefn.cpp
--- old/unrar/timefn.cpp2016-07-21 10:59:37.0 +0200
+++ new/unrar/timefn.cpp2016-08-14 21:17:47.0 +0200
@@ -175,6 +175,51 @@
 }
 
 
+void RarTime::SetUTC(RarLocalTime 

commit unrar for openSUSE:Factory:NonFree

2016-07-24 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-07-24 19:53:30

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-05-31 
12:25:37.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-07-24 
19:53:58.0 +0200
@@ -1,0 +2,6 @@
+Fri Jul 22 06:51:29 UTC 2016 - mplus...@suse.com
+
+- Update to version 5.4.3:
+  * No changelog provided.
+
+---

Old:

  unrarsrc-5.4.2.tar.gz

New:

  unrarsrc-5.4.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.Mdf7an/_old  2016-07-24 19:54:00.0 +0200
+++ /var/tmp/diff_new_pack.Mdf7an/_new  2016-07-24 19:54:00.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_4_2
+%define libsuffix 5_4_3
 
 Name:   unrar
-Version:5.4.2
+Version:5.4.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree
@@ -87,7 +87,7 @@
 %defattr(-,root,root)
 %doc acknow.txt license.txt readme.txt
 %{_bindir}/unrar
-%doc %{_mandir}/man1/unrar.1*
+%{_mandir}/man1/unrar.1%{ext_man}
 
 %files -n libunrar%{libsuffix}
 %defattr(-,root,root)

++ unrarsrc-5.4.2.tar.gz -> unrarsrc-5.4.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/blake2s.cpp new/unrar/blake2s.cpp
--- old/unrar/blake2s.cpp   2016-05-30 13:38:10.0 +0200
+++ new/unrar/blake2s.cpp   2016-07-21 10:59:36.0 +0200
@@ -162,7 +162,7 @@
   memcpy( S->buf + left, in, (size_t)inlen );
   S->buflen += (size_t)inlen; // Be lazy, do not compress
   in += inlen;
-  inlen -= inlen;
+  inlen = 0;
 }
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2016-05-30 13:35:51.0 +0200
+++ new/unrar/dll.rc2016-07-21 10:54:58.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 40, 2, 1980
-PRODUCTVERSION 5, 40, 2, 1980
+FILEVERSION 5, 40, 4, 2032
+PRODUCTVERSION 5, 40, 4, 2032
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.40.2\0"
-  VALUE "ProductVersion", "5.40.2\0"
+  VALUE "FileVersion", "5.40.4\0"
+  VALUE "ProductVersion", "5.40.4\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2016\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/hash.cpp new/unrar/hash.cpp
--- old/unrar/hash.cpp  2016-05-30 13:38:10.0 +0200
+++ new/unrar/hash.cpp  2016-07-21 10:59:36.0 +0200
@@ -41,6 +41,7 @@
 
 DataHash::DataHash()
 {
+  blake2ctx=NULL;
   HashType=HASH_NONE;
 #ifdef RAR_SMP
   ThPool=NULL;
@@ -54,20 +55,26 @@
 #ifdef RAR_SMP
   DestroyThreadPool(ThPool);
 #endif
-  cleandata(, sizeof(blake2ctx));
   cleandata(, sizeof(CurCRC32));
+  if (blake2ctx!=NULL)
+  {
+cleandata(blake2ctx, sizeof(blake2sp_state));
+delete blake2ctx;
+  }
 }
 
 
 void DataHash::Init(HASH_TYPE Type,uint MaxThreads)
 {
+  if (blake2ctx==NULL)
+blake2ctx=new blake2sp_state;
   HashType=Type;
   if (Type==HASH_RAR14)
 CurCRC32=0;
   if (Type==HASH_CRC32)
 CurCRC32=0x; // Initial CRC32 value.
   if (Type==HASH_BLAKE2)
-blake2sp_init(  );
+blake2sp_init(blake2ctx);
 #ifdef RAR_SMP
   DataHash::MaxThreads=Min(MaxThreads,MaxHashThreads);
 #endif
@@ -88,10 +95,10 @@
 #ifdef RAR_SMP
 if (MaxThreads>1 && ThPool==NULL)
   ThPool=CreateThreadPool();
-blake2ctx.ThPool=ThPool;
-blake2ctx.MaxThreads=MaxThreads;
+blake2ctx->ThPool=ThPool;
+blake2ctx->MaxThreads=MaxThreads;
 #endif
-blake2sp_update( , (byte *)Data, DataSize);
+blake2sp_update( blake2ctx, (byte *)Data, DataSize);
   }
 }
 
@@ -106,8 +113,8 @@
   if (HashType==HASH_BLAKE2)
   {
 // Preserve the original context, so we can continue hashing if necessary.
-blake2sp_state res=blake2ctx;
-blake2sp_final( , Result->Digest );
+blake2sp_state res=*blake2ctx;
+blake2sp_final(,Result->Digest);
   }
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' 

commit unrar for openSUSE:Factory:NonFree

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-05-31 12:25:36

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-05-12 
09:34:13.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-05-31 
12:25:37.0 +0200
@@ -1,0 +2,6 @@
+Tue May 31 09:02:48 UTC 2016 - mplus...@suse.com
+
+- Update to version 5.4.2:
+  * No changelog provided.
+
+---

Old:

  unrarsrc-5.4.1.tar.gz

New:

  unrarsrc-5.4.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.66MjYw/_old  2016-05-31 12:25:38.0 +0200
+++ /var/tmp/diff_new_pack.66MjYw/_new  2016-05-31 12:25:38.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_4_1
+%define libsuffix 5_4_2
 
 Name:   unrar
-Version:5.4.1
+Version:5.4.2
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.4.1.tar.gz -> unrarsrc-5.4.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/UnRAR.vcxproj new/unrar/UnRAR.vcxproj
--- old/unrar/UnRAR.vcxproj 2016-03-05 17:23:26.0 +0100
+++ new/unrar/UnRAR.vcxproj 2016-05-10 22:16:27.0 +0200
@@ -105,6 +105,7 @@
   ProgramDatabase
   StdCall
   
4007;4996;%(DisableSpecificWarnings)
+  NoExtensions
 
 
   true
@@ -130,6 +131,7 @@
   ProgramDatabase
   StdCall
   
4007;4996;%(DisableSpecificWarnings)
+  NotSet
 
 
   true
@@ -151,7 +153,7 @@
   Default
   true
   true
-  NotSet
+  NoExtensions
   Precise
   false
   Use
@@ -194,6 +196,7 @@
   ProgramDatabase
   StdCall
   
4007;4996;%(DisableSpecificWarnings)
+  NotSet
 
 
   true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/UnRARDll.vcxproj new/unrar/UnRARDll.vcxproj
--- old/unrar/UnRARDll.vcxproj  2016-03-07 09:09:29.0 +0100
+++ new/unrar/UnRARDll.vcxproj  2016-05-10 22:17:57.0 +0200
@@ -146,6 +146,7 @@
   ProgramDatabase
   Cdecl
   
4007;4996;%(DisableSpecificWarnings)
+  NoExtensions
 
 
   $(OutDir)unrar.dll
@@ -175,6 +176,7 @@
   ProgramDatabase
   Cdecl
   
4007;4996;%(DisableSpecificWarnings)
+  NotSet
 
 
   $(OutDir)unrar.dll
@@ -199,7 +201,7 @@
   4Bytes
   true
   true
-  NotSet
+  NoExtensions
   Precise
   false
   Use
@@ -247,6 +249,7 @@
   ProgramDatabase
   Cdecl
   
4007;4996;%(DisableSpecificWarnings)
+  NotSet
 
 
   $(OutDir)unrar.dll
@@ -274,7 +277,7 @@
   4Bytes
   true
   true
-  NotSet
+  NoExtensions
   Precise
   false
   Use
@@ -322,6 +325,7 @@
   ProgramDatabase
   StdCall
   
4007;4996;%(DisableSpecificWarnings)
+  NotSet
 
 
   $(OutDir)unrar.dll
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2016-05-10 11:27:22.0 +0200
+++ new/unrar/arcread.cpp   2016-05-30 13:38:10.0 +0200
@@ -53,9 +53,11 @@
 
 size_t Archive::SearchSubBlock(const wchar *Type)
 {
-  size_t Size;
+  size_t Size,Count=0;
   while ((Size=ReadHeader())!=0 && GetHeaderType()!=HEAD_ENDARC)
   {
+if ((++Count & 127)==0)
+  Wait();
 if (GetHeaderType()==HEAD_SERVICE && SubHead.CmpName(Type))
   return Size;
 SeekToNext();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2016-05-10 11:07:15.0 +0200
+++ new/unrar/dll.rc2016-05-30 13:35:51.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 40, 1, 1960
-PRODUCTVERSION 5, 40, 1, 1960
+FILEVERSION 5, 40, 2, 1980
+PRODUCTVERSION 5, 40, 2, 1980
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.40.1\0"
-  VALUE "ProductVersion", "5.40.1\0"
+  VALUE "FileVersion", "5.40.2\0"
+  VALUE "ProductVersion", 

commit unrar for openSUSE:Factory:NonFree

2016-05-12 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-05-12 09:34:11

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-02-05 
00:32:23.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-05-12 
09:34:13.0 +0200
@@ -1,0 +2,12 @@
+Wed May 11 14:16:12 UTC 2016 - mplus...@suse.com
+
+- Update to 5.4.1:
+  * No changelog provided.
+
+---
+Sat Mar 26 10:18:24 UTC 2016 - lazy.k...@opensuse.org
+
+- Update to 5.3.11.
+  * No changelog.
+
+---

Old:

  unrarsrc-5.3.10.tar.gz

New:

  unrarsrc-5.4.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.mdjoAl/_old  2016-05-12 09:34:14.0 +0200
+++ /var/tmp/diff_new_pack.mdjoAl/_new  2016-05-12 09:34:14.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_10
+%define libsuffix 5_4_1
 
 Name:   unrar
-Version:5.3.10
+Version:5.4.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.10.tar.gz -> unrarsrc-5.4.1.tar.gz ++
 3476 lines of diff (skipped)




commit unrar for openSUSE:Factory:NonFree

2016-02-04 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-02-05 00:32:18

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2016-01-16 
11:57:27.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-02-05 
00:32:23.0 +0100
@@ -1,0 +2,6 @@
+Thu Feb  4 09:11:05 UTC 2016 - idon...@suse.com
+
+- Update to 5.3.10
+  * No changelog upstream.
+
+---

Old:

  unrarsrc-5.3.9.tar.gz

New:

  unrarsrc-5.3.10.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.xTDd8P/_old  2016-02-05 00:32:24.0 +0100
+++ /var/tmp/diff_new_pack.xTDd8P/_new  2016-02-05 00:32:24.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_9
+%define libsuffix 5_3_10
 
 Name:   unrar
-Version:5.3.9
+Version:5.3.10
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.9.tar.gz -> unrarsrc-5.3.10.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2016-01-03 10:10:40.0 +0100
+++ new/unrar/dll.rc2016-02-03 20:37:39.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 31, 1, 1832
-PRODUCTVERSION 5, 31, 1, 1832
+FILEVERSION 5, 31, 100, 1864
+PRODUCTVERSION 5, 31, 100, 1864
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.31.1\0"
-  VALUE "ProductVersion", "5.31.1\0"
+  VALUE "FileVersion", "5.31.0\0"
+  VALUE "ProductVersion", "5.31.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2016\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/unicode.cpp new/unrar/unicode.cpp
--- old/unrar/unicode.cpp   2016-01-03 10:55:37.0 +0100
+++ new/unrar/unicode.cpp   2016-02-03 20:41:37.0 +0100
@@ -380,7 +380,7 @@
 int wcsicomp(const wchar *s1,const wchar *s2)
 {
 #ifdef _WIN_ALL
-  return 
CompareStringW(LOCALE_USER_DEFAULT,NORM_IGNORECASE|SORT_STRINGSORT,s1,-1,s2,-1)-2;
+  return 
CompareString(LOCALE_USER_DEFAULT,NORM_IGNORECASE|SORT_STRINGSORT,s1,-1,s2,-1)-2;
 #else
   while (true)
   {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2016-01-03 10:55:37.0 +0100
+++ new/unrar/version.hpp   2016-02-03 20:41:37.0 +0100
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR31
-#define RARVER_BETA  1
-#define RARVER_DAY   3
-#define RARVER_MONTH 1
+#define RARVER_BETA  0
+#define RARVER_DAY   4
+#define RARVER_MONTH 2
 #define RARVER_YEAR   2016




commit unrar for openSUSE:Factory:NonFree

2016-01-16 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2016-01-16 11:57:18

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-11-24 
22:34:33.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2016-01-16 
11:57:27.0 +0100
@@ -1,0 +2,6 @@
+Sun Jan 10 12:16:14 UTC 2016 - lazy.k...@opensuse.org
+
+- Update to 5.3.9.
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.3.8.tar.gz

New:

  unrarsrc-5.3.9.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.iS9GS8/_old  2016-01-16 11:57:28.0 +0100
+++ /var/tmp/diff_new_pack.iS9GS8/_new  2016-01-16 11:57:28.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_8
+%define libsuffix 5_3_9
 
 Name:   unrar
-Version:5.3.8
+Version:5.3.9
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.8.tar.gz -> unrarsrc-5.3.9.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-11-18 10:14:43.0 +0100
+++ new/unrar/dll.rc2016-01-03 10:10:40.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 100, 1785
-PRODUCTVERSION 5, 30, 100, 1785
+FILEVERSION 5, 31, 1, 1832
+PRODUCTVERSION 5, 31, 1, 1832
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,9 +14,9 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.30.0\0"
-  VALUE "ProductVersion", "5.30.0\0"
-  VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2015\0"
+  VALUE "FileVersion", "5.31.1\0"
+  VALUE "ProductVersion", "5.31.1\0"
+  VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2016\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/secpassword.cpp new/unrar/secpassword.cpp
--- old/unrar/secpassword.cpp   2015-11-18 10:34:20.0 +0100
+++ new/unrar/secpassword.cpp   2016-01-03 10:55:37.0 +0100
@@ -35,7 +35,7 @@
 {
   if (!LoadCalled)
   {
-hCrypt = LoadLibraryW(L"Crypt32.dll");
+hCrypt = LoadSysLibrary(L"Crypt32.dll");
 if (hCrypt != NULL)
 {
   pCryptProtectMemory = (CRYPTPROTECTMEMORY)GetProcAddress(hCrypt, 
"CryptProtectMemory");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/system.cpp new/unrar/system.cpp
--- old/unrar/system.cpp2015-11-18 10:34:20.0 +0100
+++ new/unrar/system.cpp2016-01-03 10:55:37.0 +0100
@@ -130,6 +130,9 @@
 
 
 
+
+
+
 #ifdef USE_SSE
 SSE_VERSION _SSE_Version=GetSSEVersion();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/timefn.cpp new/unrar/timefn.cpp
--- old/unrar/timefn.cpp2015-11-18 10:34:20.0 +0100
+++ new/unrar/timefn.cpp2016-01-03 10:55:37.0 +0100
@@ -122,6 +122,7 @@
   st.wMinute=lt->Minute;
   st.wSecond=lt->Second;
   st.wMilliseconds=0;
+  st.wDayOfWeek=0;
   FILETIME lft;
   if (SystemTimeToFileTime(,))
   {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2015-11-18 10:34:20.0 +0100
+++ new/unrar/version.hpp   2016-01-03 10:55:37.0 +0100
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
-#define RARVER_MINOR30
-#define RARVER_BETA  0
-#define RARVER_DAY  18
-#define RARVER_MONTH11
-#define RARVER_YEAR   2015
+#define RARVER_MINOR31
+#define RARVER_BETA  1
+#define RARVER_DAY   3
+#define RARVER_MONTH 1
+#define RARVER_YEAR   2016




commit unrar for openSUSE:Factory:NonFree

2015-11-24 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-11-24 22:34:01

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-10-28 
17:31:28.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-11-24 
22:34:33.0 +0100
@@ -1,0 +2,6 @@
+Tue Nov 24 11:58:30 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.8
+  * No changelog upstream
+
+---

Old:

  unrarsrc-5.3.7.tar.gz

New:

  unrarsrc-5.3.8.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.Da20Ku/_old  2015-11-24 22:34:34.0 +0100
+++ /var/tmp/diff_new_pack.Da20Ku/_new  2015-11-24 22:34:34.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_7
+%define libsuffix 5_3_8
 
 Name:   unrar
-Version:5.3.7
+Version:5.3.8
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.7.tar.gz -> unrarsrc-5.3.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-10-27 10:12:11.0 +0100
+++ new/unrar/dll.rc2015-11-18 10:14:43.0 +0100
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 6, 1763
-PRODUCTVERSION 5, 30, 6, 1763
+FILEVERSION 5, 30, 100, 1785
+PRODUCTVERSION 5, 30, 100, 1785
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.30.6\0"
-  VALUE "ProductVersion", "5.30.6\0"
+  VALUE "FileVersion", "5.30.0\0"
+  VALUE "ProductVersion", "5.30.0\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2015\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/strfn.cpp new/unrar/strfn.cpp
--- old/unrar/strfn.cpp 2015-10-27 10:16:03.0 +0100
+++ new/unrar/strfn.cpp 2015-11-18 10:34:20.0 +0100
@@ -15,6 +15,10 @@
 void IntToExt(const char *Src,char *Dest,size_t DestSize)
 {
 #ifdef _WIN_ALL
+  // OemToCharBuff does not stop at 0, so let's check source length.
+  size_t SrcLength=strlen(Src)+1;
+  if (DestSize>SrcLength)
+DestSize=SrcLength;
   OemToCharBuffA(Src,Dest,(DWORD)DestSize);
   Dest[DestSize-1]=0;
 #elif defined(_ANDROID)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2015-10-27 10:16:03.0 +0100
+++ new/unrar/version.hpp   2015-11-18 10:34:20.0 +0100
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR30
-#define RARVER_BETA  6
-#define RARVER_DAY  27
-#define RARVER_MONTH10
+#define RARVER_BETA  0
+#define RARVER_DAY  18
+#define RARVER_MONTH11
 #define RARVER_YEAR   2015




commit unrar for openSUSE:Factory:NonFree

2015-10-28 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-10-28 17:31:23

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-10-14 
16:46:21.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-10-28 
17:31:28.0 +0100
@@ -1,0 +2,7 @@
+Wed Oct 28 06:15:49 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.7
+  * Changes in broken archive processing to handle invalid ZIP,
+ARJ and ISO archives more reliably
+
+---

Old:

  unrarsrc-5.3.5.tar.gz

New:

  unrarsrc-5.3.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.wp9RyV/_old  2015-10-28 17:31:28.0 +0100
+++ /var/tmp/diff_new_pack.wp9RyV/_new  2015-10-28 17:31:28.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_5
+%define libsuffix 5_3_7
 
 Name:   unrar
-Version:5.3.5
+Version:5.3.7
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.5.tar.gz -> unrarsrc-5.3.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/UnRARDll.vcproj new/unrar/UnRARDll.vcproj
--- old/unrar/UnRARDll.vcproj   2014-03-16 19:51:42.0 +0100
+++ new/unrar/UnRARDll.vcproj   2015-10-04 10:38:40.0 +0200
@@ -73,7 +73,7 @@
OutputFile="$(OutDir)\unrar.dll"
LinkIncremental="2"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.def"
+   ModuleDefinitionFile="dll.def"
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="1"
@@ -155,7 +155,7 @@
OutputFile="$(OutDir)\unrar64.dll"
LinkIncremental="2"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.def"
+   ModuleDefinitionFile="dll.def"
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="17"
@@ -245,7 +245,7 @@
OutputFile="$(OutDir)\unrar.dll"
LinkIncremental="1"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.def"
+   ModuleDefinitionFile="dll.def"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
@@ -337,7 +337,7 @@
OutputFile="$(OutDir)\unrar64.dll"
LinkIncremental="1"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.def"
+   ModuleDefinitionFile="dll.def"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
@@ -430,7 +430,7 @@
OutputFile="$(OutDir)\unrar_nocrypt.dll"
LinkIncremental="1"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll_nocrypt.def"
+   ModuleDefinitionFile="dll_nocrypt.def"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
@@ -522,7 +522,7 @@
OutputFile="$(OutDir)\unrar64_nocrypt.dll"
LinkIncremental="1"
GenerateManifest="true"
-   
ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll_nocrypt.def"
+   ModuleDefinitionFile="dll_nocrypt.def"
GenerateDebugInformation="true"
SubSystem="1"
  

commit unrar for openSUSE:Factory:NonFree

2015-10-14 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-10-14 16:46:17

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-09-17 
09:22:03.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-10-14 
16:46:21.0 +0200
@@ -1,0 +2,7 @@
+Thu Oct  8 17:37:01 UTC 2015 - lazy.k...@opensuse.org
+
+- Update to 5.3.5.
+  * Fixed bug: unrar could crash when unpacking .rar archives with
+corrupt file headers.
+
+---

Old:

  unrarsrc-5.3.4.tar.gz

New:

  unrarsrc-5.3.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.woOtxz/_old  2015-10-14 16:46:22.0 +0200
+++ /var/tmp/diff_new_pack.woOtxz/_new  2015-10-14 16:46:22.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_4
+%define libsuffix 5_3_5
 
 Name:   unrar
-Version:5.3.4
+Version:5.3.5
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.4.tar.gz -> unrarsrc-5.3.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-09-13 11:04:13.0 +0200
+++ new/unrar/dll.rc2015-10-01 23:48:14.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 4, 1719
-PRODUCTVERSION 5, 30, 4, 1719
+FILEVERSION 5, 30, 4, 1738
+PRODUCTVERSION 5, 30, 4, 1738
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2015-09-13 11:12:16.0 +0200
+++ new/unrar/extract.cpp   2015-10-02 00:34:56.0 +0200
@@ -206,6 +206,18 @@
 
 bool CmdExtract::ExtractCurrentFile(Archive ,size_t HeaderSize,bool 
)
 {
+  // We can get negative sizes in corrupt archive and it is unacceptable
+  // for size comparisons in CmdExtract::UnstoreFile and ComprDataIO::UnpRead,
+  // where we cast sizes to size_t and can exceed another read or available
+  // size. We could fix it when reading an archive. But we prefer to do it
+  // here, because this function is called directly in unrar.dll, so we fix
+  // bad parameters passed to dll. Also we want to see real negative sizes
+  // in the listing of corrupt archive.
+  if (Arc.FileHead.PackSize<0)
+Arc.FileHead.PackSize=0;
+  if (Arc.FileHead.UnpSize<0)
+Arc.FileHead.UnpSize=0;
+
   wchar Command=Cmd->Command[0];
   if (HeaderSize==0)
 if (DataIO.UnpVolume)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/list.cpp new/unrar/list.cpp
--- old/unrar/list.cpp  2015-09-13 11:12:17.0 +0200
+++ new/unrar/list.cpp  2015-10-02 00:34:56.0 +0200
@@ -215,7 +215,7 @@
 TitleShown=true;
   }
 
-  wchar UnpSizeText[20],PackSizeText[20];
+  wchar UnpSizeText[30],PackSizeText[30];
   if (hd.UnpSize==INT64NDF)
 wcscpy(UnpSizeText,L"?");
   else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/strfn.cpp new/unrar/strfn.cpp
--- old/unrar/strfn.cpp 2015-09-13 11:12:17.0 +0200
+++ new/unrar/strfn.cpp 2015-10-02 00:34:56.0 +0200
@@ -290,14 +290,21 @@
   char NumStr[50];
   size_t Pos=0;
 
+  int Neg=n < 0 ? 1 : 0;
+  if (Neg)
+n=-n;
+
   do
   {
-if (Pos+1>=MaxSize)
+if (Pos+1>=MaxSize-Neg)
   break;
 NumStr[Pos++]=char(n%10)+'0';
 n=n/10;
   } while (n!=0);
 
+  if (Neg)
+NumStr[Pos++]='-';
+
   for (size_t I=0;I=MaxSize)
+if (Pos+1>=MaxSize-Neg)
   break;
 NumStr[Pos++]=wchar(n%10)+'0';
 n=n/10;
   } while (n!=0);
 
+  if (Neg)
+NumStr[Pos++]='-';
+
   for (size_t I=0;I

commit unrar for openSUSE:Factory:NonFree

2015-09-17 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-09-17 09:22:02

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is "unrar"

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-08-28 
08:27:56.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-09-17 
09:22:03.0 +0200
@@ -1,0 +2,6 @@
+Mon Sep 14 13:52:46 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.4
+  * No changelog upstream
+
+---

Old:

  unrarsrc-5.3.3.tar.gz

New:

  unrarsrc-5.3.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.a6pDFp/_old  2015-09-17 09:22:03.0 +0200
+++ /var/tmp/diff_new_pack.a6pDFp/_new  2015-09-17 09:22:03.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_3
+%define libsuffix 5_3_4
 
 Name:   unrar
-Version:5.3.3
+Version:5.3.4
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.3.tar.gz -> unrarsrc-5.3.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-08-27 14:37:41.0 +0200
+++ new/unrar/dll.rc2015-09-13 11:04:13.0 +0200
@@ -2,8 +2,8 @@
 #include 
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 3, 1702
-PRODUCTVERSION 5, 30, 3, 1702
+FILEVERSION 5, 30, 4, 1719
+PRODUCTVERSION 5, 30, 4, 1719
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE "CompanyName", "Alexander Roshal\0"
   VALUE "ProductName", "RAR decompression library\0"
   VALUE "FileDescription", "RAR decompression library\0"
-  VALUE "FileVersion", "5.30.3\0"
-  VALUE "ProductVersion", "5.30.3\0"
+  VALUE "FileVersion", "5.30.4\0"
+  VALUE "ProductVersion", "5.30.4\0"
   VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2015\0"
   VALUE "OriginalFilename", "Unrar.dll\0"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/errhnd.cpp new/unrar/errhnd.cpp
--- old/unrar/errhnd.cpp2015-08-27 14:40:59.0 +0200
+++ new/unrar/errhnd.cpp2015-09-13 11:12:16.0 +0200
@@ -102,7 +102,11 @@
 #ifndef SILENT
   if (!Silent)
   {
+#ifndef _ANDROID
+// We do not display "repeat write" prompt in Android, so we do not
+// need the matching system error message.
 SysErrMsg();
+#endif
 bool Repeat=uiAskRepeatWrite(FileName,DiskFull);
 if (!Repeat) // Disable shutdown if user pressed Cancel in error dialog.
   DisableShutdown=true;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2015-08-27 14:40:59.0 +0200
+++ new/unrar/extract.cpp   2015-09-13 11:12:16.0 +0200
@@ -429,6 +429,37 @@
 #endif
 }
 
+
+// Set a password before creating the file, so we can skip creating
+// in case of wrong password.
+SecPassword FilePassword=Cmd->Password;
+#if defined(_WIN_ALL) && !defined(SFX_MODULE)
+ConvertDosPassword(Arc,FilePassword);
+#endif
+
+byte PswCheck[SIZE_PSWCHECK];
+DataIO.SetEncryption(false,Arc.FileHead.CryptMethod,,
+   Arc.FileHead.SaltSet ? Arc.FileHead.Salt:NULL,
+   Arc.FileHead.InitV,Arc.FileHead.Lg2Count,
+   Arc.FileHead.HashKey,PswCheck);
+
+// If header is damaged, we cannot rely on password check value,
+// because it can be damaged too.
+if (Arc.FileHead.Encrypted && Arc.FileHead.UsePswCheck &&
+memcmp(Arc.FileHead.PswCheck,PswCheck,SIZE_PSWCHECK)!=0 &&
+!Arc.BrokenHeader)
+{
+  uiMsg(UIERROR_BADPSW,Arc.FileName);
+  ErrHandler.SetErrorCode(RARX_BADPWD);
+  ExtrFile=false;
+#ifdef RARDLL
+  // If we already have ERAR_EOPEN as result of missing volume,
+  // we should not replace it with less precise ERAR_BAD_DATA.
+  if (Cmd->DllError!=ERAR_EOPEN)
+Cmd->DllError=ERAR_BAD_PASSWORD;
+#endif
+}
+
 File CurFile;
 
 bool LinkEntry=Arc.FileHead.RedirType!=FSREDIR_NONE;
@@ -513,28 +544,6 @@
 mprintf(L" ");
 #endif
 
-  SecPassword FilePassword=Cmd->Password;
-#if defined(_WIN_ALL) && !defined(SFX_MODULE)
-  ConvertDosPassword(Arc,FilePassword);
-#endif
-
-  byte PswCheck[SIZE_PSWCHECK];
-  

commit unrar for openSUSE:Factory:NonFree

2015-08-28 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-08-28 08:27:43

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-08-05 
06:52:14.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-08-28 
08:27:56.0 +0200
@@ -1,0 +2,6 @@
+Thu Aug 27 17:42:59 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.3
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.3.2.tar.gz

New:

  unrarsrc-5.3.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.sYu3vj/_old  2015-08-28 08:27:58.0 +0200
+++ /var/tmp/diff_new_pack.sYu3vj/_new  2015-08-28 08:27:58.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_2
+%define libsuffix 5_3_3
 
 Name:   unrar
-Version:5.3.2
+Version:5.3.3
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.2.tar.gz - unrarsrc-5.3.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-08-04 11:51:02.0 +0200
+++ new/unrar/dll.rc2015-08-27 14:37:41.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 2, 1679
-PRODUCTVERSION 5, 30, 2, 1679
+FILEVERSION 5, 30, 3, 1702
+PRODUCTVERSION 5, 30, 3, 1702
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.30.2\0
-  VALUE ProductVersion, 5.30.2\0
+  VALUE FileVersion, 5.30.3\0
+  VALUE ProductVersion, 5.30.3\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2015\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/errhnd.cpp new/unrar/errhnd.cpp
--- old/unrar/errhnd.cpp2015-08-04 12:22:40.0 +0200
+++ new/unrar/errhnd.cpp2015-08-27 14:40:59.0 +0200
@@ -12,9 +12,9 @@
   ErrCount=0;
   EnableBreak=true;
   Silent=false;
-  DoShutdown=false;
   UserBreak=false;
   MainExit=false;
+  DisableShutdown=false;
 }
 
 
@@ -64,7 +64,10 @@
   if (!Silent)
   {
 SysErrMsg();
-return uiAskRepeatRead(FileName);
+bool Repeat=uiAskRepeatRead(FileName);
+if (!Repeat) // Disable shutdown if user pressed Cancel in error dialog.
+  DisableShutdown=true;
+return Repeat;
   }
 #endif
   return false;
@@ -100,7 +103,10 @@
   if (!Silent)
   {
 SysErrMsg();
-return uiAskRepeatWrite(FileName,DiskFull);
+bool Repeat=uiAskRepeatWrite(FileName,DiskFull);
+if (!Repeat) // Disable shutdown if user pressed Cancel in error dialog.
+  DisableShutdown=true;
+return Repeat;
   }
 #endif
   return false;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/errhnd.hpp new/unrar/errhnd.hpp
--- old/unrar/errhnd.hpp2015-08-04 12:22:40.0 +0200
+++ new/unrar/errhnd.hpp2015-08-27 14:40:59.0 +0200
@@ -25,7 +25,7 @@
 uint ErrCount;
 bool EnableBreak;
 bool Silent;
-bool DoShutdown;
+bool DisableShutdown; // Shutdown is not suitable after last error.
   public:
 ErrorHandler();
 void Clean();
@@ -57,11 +57,12 @@
 void SetSignalHandlers(bool Enable);
 void Throw(RAR_EXIT Code);
 void SetSilent(bool Mode) {Silent=Mode;};
-void SetShutdown(bool Mode) {DoShutdown=Mode;};
 void SysErrMsg();
 int GetSystemErrorCode();
 void SetSystemErrorCode(int Code);
-bool UserBreak;
+bool IsShutdownEnabled() {return !DisableShutdown;}
+
+bool UserBreak; // Ctrl+Break is pressed.
 bool MainExit; // main() is completed.
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/filcreat.cpp new/unrar/filcreat.cpp
--- old/unrar/filcreat.cpp  2015-08-04 12:22:40.0 +0200
+++ new/unrar/filcreat.cpp  2015-08-27 14:40:59.0 +0200
@@ -63,7 +63,7 @@
 Ext=Name+NameLength;
   for (uint FileVer=1;;FileVer++)
   {
-#ifdef _ANDROID // No swprintf in Android NDK r9.
+#ifdef _ANDROID // No swprintf in Android prior to Android 5.0.
 uint 

commit unrar for openSUSE:Factory:NonFree

2015-08-04 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-08-05 06:52:13

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-07-21 
13:29:25.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-08-05 
06:52:14.0 +0200
@@ -1,0 +2,6 @@
+Tue Aug  4 11:56:36 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.2
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.3.1.tar.gz

New:

  unrarsrc-5.3.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.T2lR1Q/_old  2015-08-05 06:52:15.0 +0200
+++ /var/tmp/diff_new_pack.T2lR1Q/_new  2015-08-05 06:52:15.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_3_1
+%define libsuffix 5_3_2
 
 Name:   unrar
-Version:5.3.1
+Version:5.3.2
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.3.1.tar.gz - unrarsrc-5.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.cpp new/unrar/dll.cpp
--- old/unrar/dll.cpp   2015-07-19 09:59:15.0 +0200
+++ new/unrar/dll.cpp   2015-08-04 12:22:40.0 +0200
@@ -74,7 +74,7 @@
   delete Data;
   return NULL;
 }
-if (!Data-Arc.IsArchive(false))
+if (!Data-Arc.IsArchive(true))
 {
   if (Data-Cmd.DllError!=0)
 r-OpenResult=Data-Cmd.DllError;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-07-19 09:55:28.0 +0200
+++ new/unrar/dll.rc2015-08-04 11:51:02.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 30, 1, 1663
-PRODUCTVERSION 5, 30, 1, 1663
+FILEVERSION 5, 30, 2, 1679
+PRODUCTVERSION 5, 30, 2, 1679
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.30.1\0
-  VALUE ProductVersion, 5.30.1\0
+  VALUE FileVersion, 5.30.2\0
+  VALUE ProductVersion, 5.30.2\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2015\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2015-07-19 09:59:15.0 +0200
+++ new/unrar/extract.cpp   2015-08-04 12:22:40.0 +0200
@@ -790,12 +790,17 @@
 {
   wcsncpyz(DestName,Cmd-ExtrPath,DestSize);
 
-  // We need IsPathDiv check here to correctly handle Unix forward slash
-  // in the end of destination path in Windows: rar x arc dest/
-  if (*Cmd-ExtrPath!=0  !IsPathDiv(*PointToLastChar(Cmd-ExtrPath)))
+  if (*Cmd-ExtrPath!=0)
   {
-// Destination path can be without trailing slash if it come from GUI 
shell.
-AddEndSlash(DestName,DestSize);
+ wchar LastChar=*PointToLastChar(Cmd-ExtrPath);
+// We need IsPathDiv check here to correctly handle Unix forward slash
+// in the end of destination path in Windows: rar x arc dest/
+// IsDriveDiv is needed for current drive dir: rar x arc d:
+if (!IsPathDiv(LastChar)  !IsDriveDiv(LastChar))
+{
+  // Destination path can be without trailing slash if it come from GUI 
shell.
+  AddEndSlash(DestName,DestSize);
+}
   }
 
 #ifndef SFX_MODULE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/isnt.cpp new/unrar/isnt.cpp
--- old/unrar/isnt.cpp  2015-07-19 09:59:15.0 +0200
+++ new/unrar/isnt.cpp  2015-08-04 12:22:40.0 +0200
@@ -19,6 +19,6 @@
 Result=dwMajorVersion*0x100+dwMinorVersion;
 
 
-  return(Result);
+  return Result;
 }
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/list.cpp new/unrar/list.cpp
--- old/unrar/list.cpp  2015-07-19 09:59:15.0 +0200
+++ new/unrar/list.cpp  2015-08-04 12:22:40.0 +0200
@@ -435,13 +435,13 @@
   {
 case HSYS_WINDOWS:
   swprintf(AttrStr,AttrSize,L%c%c%c%c%c%c%c,
-  (A  0x2000) ? 'I' : '.',  // Not content indexed.
-  (A  0x0800) ? 'C' : '.',  // Compressed.
-  (A  

commit unrar for openSUSE:Factory:NonFree

2015-07-21 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-07-21 13:27:46

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-04-30 
11:51:41.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-07-21 
13:29:25.0 +0200
@@ -1,0 +2,6 @@
+Mon Jul 20 10:38:50 UTC 2015 - idon...@suse.com
+
+- Update to 5.3.1
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.2.7.tar.gz

New:

  unrarsrc-5.3.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.tVMFH1/_old  2015-07-21 13:29:26.0 +0200
+++ /var/tmp/diff_new_pack.tVMFH1/_new  2015-07-21 13:29:26.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_7
+%define libsuffix 5_3_1
 
 Name:   unrar
-Version:5.2.7
+Version:5.3.1
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.2.7.tar.gz - unrarsrc-5.3.1.tar.gz ++
 1718 lines of diff (skipped)




commit unrar for openSUSE:Factory:NonFree

2015-04-30 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-04-30 11:51:40

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-02-16 
21:15:06.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-04-30 
11:51:41.0 +0200
@@ -1,0 +2,6 @@
+Sun Apr 26 14:03:11 UTC 2015 - lazy.k...@opensuse.org
+
+- Update to 5.2.7.
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.2.6.tar.gz

New:

  unrarsrc-5.2.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.RmtQt5/_old  2015-04-30 11:51:42.0 +0200
+++ /var/tmp/diff_new_pack.RmtQt5/_new  2015-04-30 11:51:42.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_6
+%define libsuffix 5_2_7
 
 Name:   unrar
-Version:5.2.6
+Version:5.2.7
 Release:0
 Summary:A program to extract, test, and view RAR archives
 License:SUSE-NonFree

++ unrarsrc-5.2.6.tar.gz - unrarsrc-5.2.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-02-15 08:58:01.0 +0100
+++ new/unrar/dll.rc2015-03-04 12:45:30.0 +0100
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 21, 100, 1509
-PRODUCTVERSION 5, 21, 100, 1509
+FILEVERSION 5, 21, 100, 1510
+PRODUCTVERSION 5, 21, 100, 1510
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2015-02-15 09:02:48.0 +0100
+++ new/unrar/extract.cpp   2015-03-25 18:35:42.0 +0100
@@ -387,9 +387,13 @@
 
 if (Arc.FileHead.Encrypted)
 {
+  // Stop archive extracting if user cancelled a password prompt.
 #ifdef RARDLL
   if (!ExtrDllGetPassword())
+  {
+Cmd-DllError=ERAR_MISSING_PASSWORD;
 return false;
+  }
 #else
   if (!ExtrGetPassword(Arc,ArcFileName))
   {
@@ -398,6 +402,9 @@
   }
 #endif
   // Skip only the current encrypted file if empty password is entered.
+  // Actually our cancel code above intercepts empty passwords too now,
+  // so we keep the code below just in case we'll decide process empty
+  // and cancelled passwords differently sometimes.
   if (!Cmd-Password.IsSet())
   {
 ErrHandler.SetErrorCode(RARX_WARNING);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/filestr.cpp new/unrar/filestr.cpp
--- old/unrar/filestr.cpp   2015-02-15 09:02:48.0 +0100
+++ new/unrar/filestr.cpp   2015-03-25 18:35:42.0 +0100
@@ -38,16 +38,20 @@
 
   unsigned int DataSize=0,ReadSize;
   const int ReadBlock=4096;
-  Arraychar Data(ReadBlock+3);
+
+  // Our algorithm below needs at least two trailing zeroes after data.
+  // So for Unicode we provide 2 Unicode zeroes and one more byte
+  // in case read Unicode data contains uneven number of bytes.
+  const size_t ZeroPadding=5;
+
+  Arraychar Data(ReadBlock+ZeroPadding);
   while ((ReadSize=SrcFile.Read(Data[DataSize],ReadBlock))!=0)
   {
 DataSize+=ReadSize;
-Data.Add(ReadSize);
+Data.Add(ReadSize); // Always have ReadBlock available for next data.
   }
-
-  // Add trailing Unicode zero after text data. We add 3 bytes instead of 2
-  // in case read Unicode data contains uneven number of bytes.
-  memset(Data[DataSize],0,3);
+  
+  memset(Data[DataSize],0,ZeroPadding); // Provide at least 2 Unicode zero 
bytes.
 
   Arraywchar WideStr;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/strfn.cpp new/unrar/strfn.cpp
--- old/unrar/strfn.cpp 2015-02-15 09:02:48.0 +0100
+++ new/unrar/strfn.cpp 2015-03-25 18:35:42.0 +0100
@@ -19,7 +19,7 @@
   Dest[DestSize-1]=0;
 #elif defined(_ANDROID)
   wchar DestW[NM];
-  UnkToWide(Src,DestW,ASIZE(DestW));
+  JniCharToWide(Src,DestW,ASIZE(DestW),true);
   WideToChar(DestW,Dest,DestSize);
 #else
   if (Dest!=Src)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/timefn.cpp new/unrar/timefn.cpp
--- old/unrar/timefn.cpp2015-02-15 09:02:48.0 +0100
+++ new/unrar/timefn.cpp2015-03-25 18:35:42.0 +0100
@@ 

commit unrar for openSUSE:Factory:NonFree

2015-02-16 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-02-16 21:15:05

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2015-02-06 
22:38:38.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-02-16 
21:15:06.0 +0100
@@ -1,0 +2,6 @@
+Mon Feb 16 14:08:33 UTC 2015 - lazy.k...@opensuse.org
+
+- Update to 5.2.6.
+  * Based on final rar 5.21.
+
+---

Old:

  unrarsrc-5.2.5.tar.gz

New:

  unrarsrc-5.2.6.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.1LfKjn/_old  2015-02-16 21:15:06.0 +0100
+++ /var/tmp/diff_new_pack.1LfKjn/_new  2015-02-16 21:15:06.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,15 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_5
+%define libsuffix 5_2_6
 
 Name:   unrar
-Version:5.2.5
+Version:5.2.6
 Release:0
-License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives
-Url:http://www.rarlab.com
+License:SUSE-NonFree
 Group:  Productivity/Archiving/Compression
+Url:http://www.rarlab.com
 Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
 Patch1: unrarsrc-3.9-types.patch
@@ -92,7 +92,7 @@
 %files -n libunrar%{libsuffix}
 %defattr(-,root,root)
 %doc license.txt
-%{_libdir}/*.so.%version
+%{_libdir}/*.so.%{version}
 
 %files -n libunrar-devel
 %defattr(-,root,root)

++ unrarsrc-5.2.5.tar.gz - unrarsrc-5.2.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2015-01-31 09:20:43.0 +0100
+++ new/unrar/dll.rc2015-02-15 08:58:01.0 +0100
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 21, 2, 1494
-PRODUCTVERSION 5, 21, 2, 1494
+FILEVERSION 5, 21, 100, 1509
+PRODUCTVERSION 5, 21, 100, 1509
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.21.2\0
-  VALUE ProductVersion, 5.21.2\0
+  VALUE FileVersion, 5.21.0\0
+  VALUE ProductVersion, 5.21.0\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2015\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2015-01-31 09:29:33.0 +0100
+++ new/unrar/version.hpp   2015-02-15 09:02:49.0 +0100
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR21
-#define RARVER_BETA  2
-#define RARVER_DAY  31
-#define RARVER_MONTH 1
+#define RARVER_BETA  0
+#define RARVER_DAY  15
+#define RARVER_MONTH 2
 #define RARVER_YEAR   2015

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit unrar for openSUSE:Factory:NonFree

2015-02-06 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2015-02-06 22:38:36

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-12-19 
09:58:22.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2015-02-06 
22:38:38.0 +0100
@@ -1,0 +2,14 @@
+Sat Jan 31 22:03:18 UTC 2015 - lazy.k...@opensuse.org
+
+- Update to 5.2.5.
+  * Based on rar 5.21 beta 2.
+  * Now by default unrar skips symbolic links with absolute paths
+in link target when extracting. You can enable creating such
+links with -ola command line switch.
+Such links pointing to folders outside of extraction
+destination folder can present a security risk. Enable their
+extraction only if you are sure that archive contents is safe,
+such as your own backup.
+- Update a manual page.
+
+---

Old:

  unrarsrc-5.2.3.tar.gz

New:

  unrarsrc-5.2.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.4w7Uib/_old  2015-02-06 22:38:39.0 +0100
+++ /var/tmp/diff_new_pack.4w7Uib/_new  2015-02-06 22:38:39.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_3
+%define libsuffix 5_2_5
 
 Name:   unrar
-Version:5.2.3
+Version:5.2.5
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrar.1 ++
--- /var/tmp/diff_new_pack.4w7Uib/_old  2015-02-06 22:38:39.0 +0100
+++ /var/tmp/diff_new_pack.4w7Uib/_new  2015-02-06 22:38:39.0 +0100
@@ -1,9 +1,6 @@
-.\ Copyright (C) 2013 Kyrill Detinov lazy.k...@opensuse.org
+.\ Copyright (C) 2013-2015 Kyrill Detinov lazy.k...@opensuse.org
 .\
-.\ This manual page is distributed under the terms
-.\ of the GNU Free Documentation License version 1.3.
-.\
-.TH UNRAR 1 2013-05-28 unrar 5.0 User Commands
+.TH UNRAR 1 2015-02-01 unrar 5.2 User Commands
 
 .SH NAME
 unrar \- extract, test, and view RAR archives
@@ -103,6 +100,9 @@
 .B \-o[+|\-]
 Set the overwrite mode [yes|no].
 .TP
+.B \-ol[a]
+Process symbolic links as the link [absolute paths].
+.TP
 .B \-or
 Rename files automatically.
 .TP

++ unrarsrc-5.2.3.tar.gz - unrarsrc-5.2.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2014-12-02 11:10:35.0 +0100
+++ new/unrar/archive.cpp   2015-01-31 09:29:33.0 +0100
@@ -234,6 +234,7 @@
   {
 SaveFilePos SavePos(*this);
 int64 SaveCurBlockPos=CurBlockPos,SaveNextBlockPos=NextBlockPos;
+HEADER_TYPE SaveCurHeaderType=CurHeaderType;
 
 while (ReadHeader()!=0)
 {
@@ -250,6 +251,7 @@
 }
 CurBlockPos=SaveCurBlockPos;
 NextBlockPos=SaveNextBlockPos;
+CurHeaderType=SaveCurHeaderType;
   }
   if (!Volume || FirstVolume)
 wcscpy(FirstVolumeName,FileName);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2014-12-02 11:10:35.0 +0100
+++ new/unrar/archive.hpp   2015-01-31 09:29:33.0 +0100
@@ -85,8 +85,8 @@
 void AddSubData(byte *SrcData,uint64 DataSize,File *SrcFile,
  const wchar *Name,uint Flags);
 bool ReadSubData(Arraybyte *UnpData,File *DestFile);
-HEADER_TYPE GetHeaderType() {return(CurHeaderType);};
-RAROptions* GetRAROptions() {return(Cmd);}
+HEADER_TYPE GetHeaderType() {return CurHeaderType;};
+RAROptions* GetRAROptions() {return Cmd;}
 void SetSilentOpen(bool Mode) {SilentOpen=Mode;}
 #ifdef USE_QOPEN
 bool Open(const wchar *Name,uint Mode=FMF_READ);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2014-12-02 11:10:35.0 +0100
+++ new/unrar/arcread.cpp   2015-01-31 09:29:33.0 +0100
@@ -44,10 +44,10 @@
 if ((++Count  127)==0)
   Wait();
 if (GetHeaderType()==HeaderType)
-  

commit unrar for openSUSE:Factory:NonFree

2014-12-19 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-12-19 09:59:33

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-11-06 
18:07:58.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-12-19 
09:58:22.0 +0100
@@ -1,0 +2,11 @@
+Wed Dec  3 18:44:49 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.2.3.
+  * Based on final rar 5.20.
+  * File overwrite prompt displays the size and modification time
+for existing and new files.
+  * Warning is issued when starting unpacking 4 GB or larger file
+from RAR archive to FAT32 patition, so user may cancel the
+operation. FAT32 does not support files of such size.
+
+---

Old:

  unrarsrc-5.2.2.tar.gz

New:

  unrarsrc-5.2.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.TUcfLU/_old  2014-12-19 09:58:24.0 +0100
+++ /var/tmp/diff_new_pack.TUcfLU/_new  2014-12-19 09:58:24.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_2
+%define libsuffix 5_2_3
 
 Name:   unrar
-Version:5.2.2
+Version:5.2.3
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.2.2.tar.gz - unrarsrc-5.2.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2014-11-03 09:35:46.0 +0100
+++ new/unrar/dll.rc2014-12-02 11:06:20.0 +0100
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 20, 3, 1404
-PRODUCTVERSION 5, 20, 3, 1404
+FILEVERSION 5, 20, 100, 1433
+PRODUCTVERSION 5, 20, 100, 1433
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.20.3\0
-  VALUE ProductVersion, 5.20.3\0
+  VALUE FileVersion, 5.20.0\0
+  VALUE ProductVersion, 5.20.0\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2014\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/threadmisc.cpp new/unrar/threadmisc.cpp
--- old/unrar/threadmisc.cpp2014-11-03 09:39:29.0 +0100
+++ new/unrar/threadmisc.cpp2014-12-02 11:10:35.0 +0100
@@ -58,6 +58,20 @@
   if (GlobalPoolUseCount++ == 0)
 GlobalPool=new ThreadPool(MaxPoolThreads);
 
+#ifdef RARDLL
+  // We use a simple thread pool, which does not allow to add tasks from
+  // different functions and threads in the same time. It is ok for RAR,
+  // but UnRAR.dll can be used in multithreaded environment. So if one of
+  // threads requests a copy of global pool and another copy is already
+  // in use, we create and return a new pool instead of existing global.
+  if (GlobalPoolUseCount  1)
+  {
+ThreadPool *Pool = new ThreadPool(MaxPoolThreads);
+CriticalSectionEnd(PoolCreateSync.CritSection); 
+return Pool;
+  }
+#endif
+
   CriticalSectionEnd(PoolCreateSync.CritSection); 
   return GlobalPool;
 }
@@ -69,6 +83,12 @@
 
   if (Pool!=NULL  Pool==GlobalPool  GlobalPoolUseCount  0  
--GlobalPoolUseCount == 0)
 delete GlobalPool;
+#ifdef RARDLL
+  // To correctly work in multithreaded environment UnRAR.dll creates
+  // new pools if global pool is already in use. We delete such pools here.
+  if (Pool!=NULL  Pool!=GlobalPool)
+delete Pool;
+#endif
 
   CriticalSectionEnd(PoolCreateSync.CritSection); 
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/unicode.cpp new/unrar/unicode.cpp
--- old/unrar/unicode.cpp   2014-11-03 09:39:29.0 +0100
+++ new/unrar/unicode.cpp   2014-12-02 11:10:35.0 +0100
@@ -433,7 +433,7 @@
 {
   if (search[j]==0)
 return str+i;
-  if (towlower(str[i+j])!=towlower(search[j]))
+  if (tolowerw(str[i+j])!=tolowerw(search[j]))
 break;
 }
   return NULL;
@@ -472,13 +472,26 @@
 
 int toupperw(int ch)
 {
+#ifdef _WIN_ALL
+  // CharUpper is more reliable than towupper in Windows, which seems to be
+  // C locale dependent even in Unicode version. For example, towupper failed
+  // to convert lowercase Russian characters.
+  

commit unrar for openSUSE:Factory:NonFree

2014-11-06 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-11-06 18:07:57

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-10-17 
11:30:59.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-11-06 
18:07:58.0 +0100
@@ -1,0 +2,7 @@
+Mon Nov  3 17:59:31 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.2.2.
+  * Based on rar 5.20 beta 3.
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.2.1.tar.gz

New:

  unrarsrc-5.2.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.z5zwcV/_old  2014-11-06 18:07:59.0 +0100
+++ /var/tmp/diff_new_pack.z5zwcV/_new  2014-11-06 18:07:59.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_2_1
+%define libsuffix 5_2_2
 
 Name:   unrar
-Version:5.2.1
+Version:5.2.2
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.2.1.tar.gz - unrarsrc-5.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2014-10-05 20:17:48.0 +0200
+++ new/unrar/arcread.cpp   2014-11-03 09:39:29.0 +0100
@@ -811,7 +811,7 @@
 Raw.GetB((byte *)FileName,ReadNameSize);
 FileName[ReadNameSize]=0;
 
-UtfToWide(FileName,hd-FileName,ASIZE(hd-FileName)-1);
+UtfToWide(FileName,hd-FileName,ASIZE(hd-FileName));
 
 // Should do it before converting names, because extra fields can
 // affect name processing, like in case of NTFS streams.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2014-10-05 20:14:34.0 +0200
+++ new/unrar/dll.rc2014-11-03 09:35:46.0 +0100
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 20, 1, 1376
-PRODUCTVERSION 5, 20, 1, 1376
+FILEVERSION 5, 20, 3, 1404
+PRODUCTVERSION 5, 20, 3, 1404
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.20.1\0
-  VALUE ProductVersion, 5.20.1\0
+  VALUE FileVersion, 5.20.3\0
+  VALUE ProductVersion, 5.20.3\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2014\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2014-10-05 20:17:48.0 +0200
+++ new/unrar/extract.cpp   2014-11-03 09:39:29.0 +0100
@@ -50,6 +50,10 @@
   DataIO.ProcessedArcSize+=FD.Size;
   }
 
+  // Clean user entered password. Not really required, just for extra safety.
+  if (Cmd-ManualPassword)
+Cmd-Password.Clean();
+
   if (TotalFileCount==0  Cmd-Command[0]!='I'  
   ErrHandler.GetErrorCode()!=RARX_BADPWD) // Not in case of wrong archive 
password.
   {
@@ -256,15 +260,11 @@
   int MatchNumber=Cmd-IsProcessFile(Arc.FileHead,EqualNames,MatchType);
   bool ExactMatch=MatchNumber!=0;
 #ifndef SFX_MODULE
-  if (*Cmd-ArcPath==0  Cmd-ExclPath==EXCL_BASEPATH)
+  if (*Cmd-ArcPath==0  Cmd-ExclPath==EXCL_BASEPATH  ExactMatch)
   {
-*Cmd-ArcPath=0;
-if (ExactMatch)
-{
-  Cmd-FileArgs.Rewind();
-  if 
(Cmd-FileArgs.GetString(Cmd-ArcPath,ASIZE(Cmd-ArcPath),MatchNumber-1))
-*PointToName(Cmd-ArcPath)=0;
-}
+Cmd-FileArgs.Rewind();
+if 
(Cmd-FileArgs.GetString(Cmd-ArcPath,ASIZE(Cmd-ArcPath),MatchNumber-1))
+  *PointToName(Cmd-ArcPath)=0;
   }
 #endif
   if (ExactMatch  !EqualNames)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/file.cpp new/unrar/file.cpp
--- old/unrar/file.cpp  2014-10-05 20:17:48.0 +0200
+++ new/unrar/file.cpp  2014-11-03 09:39:29.0 +0100
@@ -2,7 +2,7 @@
 
 File::File()
 {
-  hFile=BAD_HANDLE;
+  hFile=FILE_BAD_HANDLE;
   *FileName=0;
   NewFile=false;
   LastWrite=false;
@@ -22,7 +22,7 @@
 
 File::~File()
 {
-  if (hFile!=BAD_HANDLE  !SkipClose)
+  if (hFile!=FILE_BAD_HANDLE  !SkipClose)
 if (NewFile)
   Delete();
 

commit unrar for openSUSE:Factory:NonFree

2014-10-17 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-10-17 11:30:58

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-09-29 
12:57:41.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-10-17 
11:30:59.0 +0200
@@ -1,0 +2,8 @@
+Tue Oct 14 15:57:22 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.2.1.
+  * Based on rar 5.20 beta 1.
+  * File overwrite prompt in unrar displays the size and
+modification time for existing and new files.
+
+---

Old:

  unrarsrc-5.1.7.tar.gz

New:

  unrarsrc-5.2.1.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.PpmaZV/_old  2014-10-17 11:31:00.0 +0200
+++ /var/tmp/diff_new_pack.PpmaZV/_new  2014-10-17 11:31:00.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_1_7
+%define libsuffix 5_2_1
 
 Name:   unrar
-Version:5.1.7
+Version:5.2.1
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.1.7.tar.gz - unrarsrc-5.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2014-08-06 16:00:14.0 +0200
+++ new/unrar/arcread.cpp   2014-10-05 20:17:48.0 +0200
@@ -893,6 +893,7 @@
   ErrHandler.Exit(RARX_USERBREAK);
 }
 #endif
+Cmd-ManualPassword=true;
   }
 }
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2014-08-06 16:00:15.0 +0200
+++ new/unrar/cmddata.cpp   2014-10-05 20:17:48.0 +0200
@@ -13,7 +13,6 @@
   *Command=0;
   *ArcName=0;
   FileLists=false;
-  NoMoreSwitches=false;
 
   ListMode=RCLM_AUTO;
 
@@ -47,6 +46,8 @@
 #if !defined(SFX_MODULE)  !defined(_ANDROID)
 void CommandData::ParseCommandLine(bool Preprocess,int argc, char *argv[])
 {
+  *Command=0;
+  NoMoreSwitches=false;
 #ifdef CUSTOM_CMDLINE_PARSER
   // In Windows we may prefer to implement our own command line parser
   // to avoid replacing \ by  in standard parser. Such replacing corrupts
@@ -58,15 +59,12 @@
   {
 if ((CmdLine=AllocCmdParam(CmdLine,Par))==NULL)
   break;
-bool Code=true;
 if (!FirstParam) // First parameter is the executable name.
   if (Preprocess)
-Code=PreprocessSwitch(Par);
+PreprocessArg(Par);
   else
 ParseArg(Par);
 free(Par);
-if (Preprocess  !Code)
-  break;
   }
 #else
   Arraywchar Arg;
@@ -75,10 +73,7 @@
 Arg.Alloc(strlen(argv[I])+1);
 CharToWide(argv[I],Arg[0],Arg.Size());
 if (Preprocess)
-{
-  if (!PreprocessSwitch(Arg[0]))
-break;
-}
+  PreprocessArg(Arg[0]);
 else
   ParseArg(Arg[0]);
   }
@@ -93,7 +88,7 @@
 void CommandData::ParseArg(wchar *Arg)
 {
   if (IsSwitch(*Arg)  !NoMoreSwitches)
-if (Arg[1]=='-')
+if (Arg[1]=='-'  Arg[2]==0)
   NoMoreSwitches=true;
 else
   ProcessSwitch(Arg+1);
@@ -199,37 +194,37 @@
 #if !defined(SFX_MODULE)  !defined(_ANDROID)
 // Preprocess those parameters, which must be processed before the rest of
 // command line. Return 'false' to stop further processing.
-bool CommandData::PreprocessSwitch(const wchar *Switch)
+void CommandData::PreprocessArg(const wchar *Arg)
 {
-  if (IsSwitch(Switch[0]))
+  if (IsSwitch(Arg[0])  !NoMoreSwitches)
   {
-Switch++;
-char SwitchA[1024];
-WideToChar(Switch,SwitchA,ASIZE(SwitchA));
-if (wcsicomp(Switch,L-)==0) // Switch --.
-  return false;
-if (wcsicomp(Switch,Lcfg-)==0)
+Arg++;
+if (Arg[0]=='-'  Arg[1]==0) // Switch --.
+  NoMoreSwitches=true;
+if (wcsicomp(Arg,Lcfg-)==0)
   ConfigDisabled=true;
 #ifndef GUI
-if (wcsnicomp(Switch,Lilog,4)==0)
+if (wcsnicomp(Arg,Lilog,4)==0)
 {
   // Ensure that correct log file name is already set
   // if we need to report an error when processing the command line.
-  ProcessSwitch(Switch);
+  ProcessSwitch(Arg);
   InitLogOptions(LogName,ErrlogCharset);
 }
 #endif
-if (wcsnicomp(Switch,Lsc,2)==0)
+if (wcsnicomp(Arg,Lsc,2)==0)
 {
   // Process -sc before reading any file lists.
-  ProcessSwitch(Switch);
+  ProcessSwitch(Arg);
 #ifndef GUI
   if 

commit unrar for openSUSE:Factory:NonFree

2014-09-29 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-09-29 12:57:39

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-08-25 
11:11:42.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-09-29 
12:57:41.0 +0200
@@ -1,0 +2,6 @@
+Wed Aug 27 05:59:26 UTC 2014 - jeng...@inai.de
+
+- Remove libunrar.so.5 symlink, which does not match the SONAME of
+  any library and would conflict with another libunrar version.
+
+---



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.36GBUT/_old  2014-09-29 12:57:41.0 +0200
+++ /var/tmp/diff_new_pack.36GBUT/_new  2014-09-29 12:57:42.0 +0200
@@ -40,7 +40,6 @@
 archives created with the RAR archiver.
 
 %package -n libunrar%{libsuffix}
-
 Summary:Decompress library for RAR archives
 Group:  System/Libraries
 
@@ -78,8 +77,7 @@
 %{buildroot}%{_libdir}/libunrar.so.%{version}
 install -Dm 0644 dll.hpp %{buildroot}/%{_includedir}/unrar/dll.hpp
 ln -s libunrar.so.%{version} \
-%{buildroot}%{_libdir}/libunrar.so.%{majorversion}
-ln -s libunrar.so.%{majorversion} %{buildroot}%{_libdir}/libunrar.so
+%{buildroot}%{_libdir}/libunrar.so
 
 %post -n libunrar%{libsuffix} -p /sbin/ldconfig
 
@@ -94,7 +92,7 @@
 %files -n libunrar%{libsuffix}
 %defattr(-,root,root)
 %doc license.txt
-%{_libdir}/*.so.%{majorversion}*
+%{_libdir}/*.so.%version
 
 %files -n libunrar-devel
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit unrar for openSUSE:Factory:NonFree

2014-08-25 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-08-25 11:11:41

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-06-16 
21:35:27.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-08-25 
11:11:42.0 +0200
@@ -1,0 +2,7 @@
+Sun Aug 10 12:10:29 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.1.7.
+  * Based on rar 5.11 beta 1.
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.1.6.tar.gz

New:

  unrarsrc-5.1.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.mglRuc/_old  2014-08-25 11:11:43.0 +0200
+++ /var/tmp/diff_new_pack.mglRuc/_new  2014-08-25 11:11:43.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_1_6
+%define libsuffix 5_1_7
 
 Name:   unrar
-Version:5.1.6
+Version:5.1.7
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.1.6.tar.gz - unrarsrc-5.1.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2014-06-10 19:10:30.0 +0200
+++ new/unrar/dll.rc2014-08-06 15:52:53.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 10, 100, 1258
-PRODUCTVERSION 5, 10, 100, 1258
+FILEVERSION 5, 11, 1, 1315
+PRODUCTVERSION 5, 11, 1, 1315
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.10.0\0
-  VALUE ProductVersion, 5.10.0\0
+  VALUE FileVersion, 5.11.1\0
+  VALUE ProductVersion, 5.11.1\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2014\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2014-06-10 19:14:06.0 +0200
+++ new/unrar/extract.cpp   2014-08-06 16:00:15.0 +0200
@@ -613,7 +613,13 @@
 
   Arc.SeekToNext();
 
-  bool 
ValidCRC=DataIO.UnpHash.Cmp(Arc.FileHead.FileHash,Arc.FileHead.UseHashKey ? 
Arc.FileHead.HashKey:NULL);
+  // We check for split after flag to detect partially extracted files
+  // from incomplete volume sets. For them file header contains packed
+  // data hash, which must not be compared against unpacked data hash
+  // to prevent accidental match. Moreover, for -m0 volumes packed data
+  // hash would match truncated unpacked data hash and lead to fake OK
+  // in incomplete volume set.
+  bool ValidCRC=!Arc.FileHead.SplitAfter  
DataIO.UnpHash.Cmp(Arc.FileHead.FileHash,Arc.FileHead.UseHashKey ? 
Arc.FileHead.HashKey:NULL);
 
   // We set AnySolidDataUnpackedWell to true if we found at least one
   // valid non-zero solid file in preceding solid stream. If it is true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/file.cpp new/unrar/file.cpp
--- old/unrar/file.cpp  2014-06-10 19:14:06.0 +0200
+++ new/unrar/file.cpp  2014-08-06 16:00:15.0 +0200
@@ -658,10 +658,26 @@
   {
 Wait();
 size_t SizeToRead=(!CopyAll  Length(int64)Buffer.Size()) ? 
(size_t)Length:Buffer.Size();
-int ReadSize=Read(Buffer[0],SizeToRead);
+char *Buf=Buffer[0];
+int ReadSize=Read(Buf,SizeToRead);
 if (ReadSize==0)
   break;
-Dest.Write(Buffer[0],ReadSize);
+size_t WriteSize=ReadSize;
+#ifdef _WIN_ALL
+// For FAT32 USB flash drives in Windows if first write is 4 KB or more,
+// write caching is disabled and write through is enabled, resulting
+// in bad performance, especially for many small files. It happens when
+// we create SFX archive on USB drive, because SFX module is writetn first.
+// So we split the first write to small 1 KB followed by rest of data.
+if (CopySize==0  WriteSize=4096)
+{
+  const size_t FirstWrite=1024;
+  Dest.Write(Buf,FirstWrite);
+  Buf+=FirstWrite;
+  WriteSize-=FirstWrite;
+}
+#endif
+Dest.Write(Buf,WriteSize);
 CopySize+=ReadSize;
 if (!CopyAll)
   Length-=ReadSize;
diff -urN 

commit unrar for openSUSE:Factory:NonFree

2014-06-16 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-06-16 21:35:25

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-05-09 
20:30:55.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-06-16 
21:35:27.0 +0200
@@ -1,0 +2,8 @@
+Wed Jun 11 14:33:28 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.1.6.
+  * Based on final RAR 5.10.
+  * Added support for AES-NI CPU instructions allowing to improve
+RAR decryption performance.
+
+---

Old:

  unrarsrc-5.1.5.tar.gz

New:

  unrarsrc-5.1.6.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.6gaGd7/_old  2014-06-16 21:35:27.0 +0200
+++ /var/tmp/diff_new_pack.6gaGd7/_new  2014-06-16 21:35:27.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_1_5
+%define libsuffix 5_1_6
 
 Name:   unrar
-Version:5.1.5
+Version:5.1.6
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.1.5.tar.gz - unrarsrc-5.1.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2014-05-06 14:06:32.0 +0200
+++ new/unrar/dll.rc2014-06-10 19:10:30.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 10, 4, 1223
-PRODUCTVERSION 5, 10, 4, 1223
+FILEVERSION 5, 10, 100, 1258
+PRODUCTVERSION 5, 10, 100, 1258
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.10.4\0
-  VALUE ProductVersion, 5.10.4\0
+  VALUE FileVersion, 5.10.0\0
+  VALUE ProductVersion, 5.10.0\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2014\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/version.hpp new/unrar/version.hpp
--- old/unrar/version.hpp   2014-05-06 14:13:10.0 +0200
+++ new/unrar/version.hpp   2014-06-10 19:14:06.0 +0200
@@ -1,6 +1,6 @@
 #define RARVER_MAJOR 5
 #define RARVER_MINOR10
-#define RARVER_BETA  4
-#define RARVER_DAY   6
-#define RARVER_MONTH 5
+#define RARVER_BETA  0
+#define RARVER_DAY  10
+#define RARVER_MONTH 6
 #define RARVER_YEAR   2014

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit unrar for openSUSE:Factory:NonFree

2014-04-30 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-05-01 07:53:21

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2014-04-08 
12:52:40.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-05-01 
07:53:22.0 +0200
@@ -1,0 +2,10 @@
+Sat Apr 26 08:40:53 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.1.3.
+  * Based on rar 5.10 beta 3.
+  * More efficient implementation of Keep broken files extraction
+option (-kb switch in command line mode). Now it allows to
+recover more data from file split between RAR volumes if next
+volume is missing.
+
+---

Old:

  unrarsrc-5.1.2.tar.gz

New:

  unrarsrc-5.1.3.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.6HnW2Z/_old  2014-05-01 07:53:22.0 +0200
+++ /var/tmp/diff_new_pack.6HnW2Z/_new  2014-05-01 07:53:22.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_1_2
+%define libsuffix 5_1_3
 
 Name:   unrar
-Version:5.1.2
+Version:5.1.3
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.1.2.tar.gz - unrarsrc-5.1.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/consio.cpp new/unrar/consio.cpp
--- old/unrar/consio.cpp2014-04-05 12:21:49.0 +0200
+++ new/unrar/consio.cpp2014-04-23 14:12:37.0 +0200
@@ -243,6 +243,10 @@
 
 
 #ifndef SILENT
+// We allow this function to return 0 in case of invalid input,
+// because it might be convenient to press Enter to some not dangerous
+// prompts like insert disk with next volume. We should call this function
+// again in case of 0 in dangerous prompt such as overwriting file.
 int Ask(const wchar *AskStr)
 {
   uiAlarm(UIALARM_QUESTION);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2014-04-05 12:18:50.0 +0200
+++ new/unrar/dll.rc2014-04-23 14:05:45.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 10, 2, 1192
-PRODUCTVERSION 5, 10, 2, 1192
+FILEVERSION 5, 10, 3, 1210
+PRODUCTVERSION 5, 10, 3, 1210
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.10.2\0
-  VALUE ProductVersion, 5.10.2\0
+  VALUE FileVersion, 5.10.3\0
+  VALUE ProductVersion, 5.10.3\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2014\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/pathfn.cpp new/unrar/pathfn.cpp
--- old/unrar/pathfn.cpp2014-04-05 12:21:49.0 +0200
+++ new/unrar/pathfn.cpp2014-04-23 14:12:37.0 +0200
@@ -766,7 +766,15 @@
 }
 const wchar *ChPtr=wcschr(MaskChars,toupperw(Mask[I]));
 if (ChPtr==NULL || QuoteMode)
+{
   DateText[J]=Mask[I];
+#ifdef _WIN_ALL
+  // We do not allow ':' in Windows because of NTFS streams.
+  // Users had problems after specifying hh:mm mask.
+  if (DateText[J]==':')
+DateText[J]='_';
+#endif
+}
 else
 {
   size_t FieldPos=ChPtr-MaskChars;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/rdwrfn.cpp new/unrar/rdwrfn.cpp
--- old/unrar/rdwrfn.cpp2014-04-05 12:21:49.0 +0200
+++ new/unrar/rdwrfn.cpp2014-04-23 14:12:38.0 +0200
@@ -62,14 +62,18 @@
 else
 {
   size_t SizeToRead=((int64)CountUnpPackedSize) ? 
(size_t)UnpPackedSize:Count;
-  if (SizeToRead==0)
-return 0;
-  if (!SrcFile-IsOpened())
-return(-1);
-  ReadSize=SrcFile-Read(ReadAddr,SizeToRead);
-  FileHeader *hd=SubHead!=NULL ? SubHead:SrcArc-FileHead;
-  if (hd-SplitAfter)
-PackedDataHash.Update(ReadAddr,ReadSize);
+  if (SizeToRead0)
+  {
+if (!SrcFile-IsOpened())
+  return -1;
+ReadSize=SrcFile-Read(ReadAddr,SizeToRead);
+FileHeader *hd=SubHead!=NULL ? SubHead:SrcArc-FileHead;
+if (hd-SplitAfter)
+

commit unrar for openSUSE:Factory:NonFree

2014-04-08 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2014-04-08 12:52:38

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-12-08 
19:50:05.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2014-04-08 
12:52:40.0 +0200
@@ -1,0 +2,17 @@
+Sat Apr  5 20:02:29 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.1.2.
+  * Based on rar 5.10 beta 2.
+  * Bugs fixed:
++ Unix RAR could not decompress hard links stored by WinRAR if
+  link source name included path separator characters.
++ Fixed compilation for PowerPC.
+
+---
+Thu Mar 20 15:28:02 UTC 2014 - lazy.k...@opensuse.org
+
+- Update to 5.1.1.
+  * Based on rar 5.10 beta 1.
+  * No changelog available.
+
+---

Old:

  unrarsrc-5.0.14.tar.gz

New:

  unrarsrc-5.1.2.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.0Dsq9g/_old  2014-04-08 12:52:40.0 +0200
+++ /var/tmp/diff_new_pack.0Dsq9g/_new  2014-04-08 12:52:40.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_14
+%define libsuffix 5_1_2
 
 Name:   unrar
-Version:5.0.14
+Version:5.1.2
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.14.tar.gz - unrarsrc-5.1.2.tar.gz ++
 7769 lines of diff (skipped)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit unrar for openSUSE:Factory:NonFree

2013-12-08 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-12-08 19:50:04

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-11-12 
16:37:03.0 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-12-08 
19:50:05.0 +0100
@@ -1,0 +2,14 @@
+Thu Dec  5 03:08:35 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.14.
+  * Based on final rar 5.01.
+  * Bugs fixed:
++ Test command could erroneously report damaged data in valid
+  recovery record if only a part of files in RAR 5.0 archive
+  was tested. It did not happen if entire archive contents was
+  tested.
++ Test command erroneously reported errors when verifying RAR
+  4.x Unix symbolic links.
++ RAR 5.0 'p' (print) command did not display file contents.
+
+---

Old:

  unrarsrc-5.0.13.tar.gz

New:

  unrarsrc-5.0.14.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.mCNp0i/_old  2013-12-08 19:50:06.0 +0100
+++ /var/tmp/diff_new_pack.mCNp0i/_new  2013-12-08 19:50:06.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_13
+%define libsuffix 5_0_14
 
 Name:   unrar
-Version:5.0.13
+Version:5.0.14
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.13.tar.gz - unrarsrc-5.0.14.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2013-11-12 09:00:45.0 +0100
+++ new/unrar/arcread.cpp   2013-12-01 09:10:14.0 +0100
@@ -88,7 +88,8 @@
   // If block positions are equal to file size, this is not an error.
   // It can happen when we reached the end of older RAR 1.5 archive,
   // which did not have the end of archive block.
-  if (CurBlockPosArcSize || NextBlockPosArcSize)
+  if (CurBlockPosArcSize || NextBlockPosArcSize || 
+  CurBlockPos!=ArcSize  NextBlockPos!=ArcSize  Format==RARFMT50)
   {
 #ifndef SHELL_EXT
 Log(FileName,St(MLogUnexpEOF));
@@ -609,7 +610,11 @@
   // resulting in 2 MB maximum header size, so here we read 4 byte CRC32
   // followed by 3 bytes or less of header size.
   const size_t FirstReadSize=7;
-  Raw.Read(FirstReadSize);
+  if (Raw.Read(FirstReadSize)FirstReadSize)
+  {
+UnexpEndArcMsg();
+return 0;
+  }
 
   ShortBlock.Reset();
   ShortBlock.HeadCRC=Raw.Get4();
@@ -618,7 +623,7 @@
 
   if (BlockSize==0 || SizeBytes==0)
   {
-UnexpEndArcMsg(); // Incomplete or broken block size field.
+BrokenHeaderMsg();
 return 0;
   }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.cpp new/unrar/dll.cpp
--- old/unrar/dll.cpp   2013-11-12 09:00:45.0 +0100
+++ new/unrar/dll.cpp   2013-12-01 09:10:14.0 +0100
@@ -195,7 +195,16 @@
 }
 else
   return ERAR_EOPEN;
-  return(Data-Arc.BrokenHeader ? ERAR_BAD_DATA:ERAR_END_ARCHIVE);
+
+  if (Data-Arc.BrokenHeader)
+return ERAR_BAD_DATA;
+
+  // Might be necessary if RARSetPassword is still called instead of
+  // open callback for RAR5 archives and if password is invalid.
+  if (Data-Arc.FailedHeaderDecryption)
+return ERAR_BAD_PASSWORD;
+  
+  return ERAR_END_ARCHIVE;
 }
 FileHeader *hd=Data-Arc.FileHead;
 if (Data-OpenMode==RAR_OM_LIST  hd-SplitBefore)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2013-11-12 08:56:32.0 +0100
+++ new/unrar/dll.rc2013-12-01 09:07:28.0 +0100
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 1, 1, 1047
-PRODUCTVERSION 5, 1, 1, 1047
+FILEVERSION 5, 1, 100, 1066
+PRODUCTVERSION 5, 1, 100, 1066
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.1.1\0
-  VALUE ProductVersion, 5.1.1\0
+  VALUE FileVersion, 5.1.0\0
+  VALUE ProductVersion, 5.1.0\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2013\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN 

commit unrar for openSUSE:Factory:NonFree

2013-11-12 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-11-12 16:37:02

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-10-21 
15:15:45.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-11-12 
16:37:03.0 +0100
@@ -1,0 +2,6 @@
+Tue Nov 12 12:53:14 UTC 2013 - idon...@suse.com
+
+- Update to 5.0.13
+  * No changelog
+
+---

Old:

  unrarsrc-5.0.12.tar.gz

New:

  unrarsrc-5.0.13.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.ZGdagg/_old  2013-11-12 16:37:04.0 +0100
+++ /var/tmp/diff_new_pack.ZGdagg/_new  2013-11-12 16:37:04.0 +0100
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_12
+%define libsuffix 5_0_13
 
 Name:   unrar
-Version:5.0.12
+Version:5.0.13
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.12.tar.gz - unrarsrc-5.0.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2013-09-24 20:08:23.0 +0200
+++ new/unrar/archive.cpp   2013-11-12 09:00:45.0 +0100
@@ -49,6 +49,7 @@
   NewArchive=false;
 
   SilentOpen=false;
+
 }
 
 
@@ -201,6 +202,15 @@
   else
 MarkHead.HeadSize=SIZEOF_MARKHEAD3;
 
+#ifdef RARDLL
+  // If callback function is not set, we cannot get the password,
+  // so we skip the initial header processing for encrypted header archive.
+  // It leads to skipped archive comment, but the rest of archive data
+  // is processed correctly.
+  if (Cmd-Callback==NULL)
+SilentOpen=true;
+#endif
+
   // Skip the archive encryption header if any and read the main header.
   while (ReadHeader()!=0)
   {
@@ -244,15 +254,6 @@
   }
 */
 
-#ifdef RARDLL
-  // If callback function is not set, we cannot get the password,
-  // so we skip the initial header processing for encrypted header archive.
-  // It leads to skipped archive comment, but the rest of archive data
-  // is processed correctly.
-  if (Cmd-Callback==NULL)
-SilentOpen=true;
-#endif
-
   MainComment=MainHead.CommentInHeader;
 
   // If we process non-encrypted archive or can request a password,
@@ -271,10 +272,10 @@
 {
   HEADER_TYPE HeaderType=GetHeaderType();
   if (HeaderType==HEAD_SERVICE)
-FirstVolume=!SubHead.SplitBefore;
+FirstVolume=Volume  !SubHead.SplitBefore;
   else
   {
-FirstVolume=HeaderType==HEAD_FILE  !FileHead.SplitBefore;
+FirstVolume=Volume  HeaderType==HEAD_FILE  !FileHead.SplitBefore;
 break;
   }
   SeekToNext();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.cpp new/unrar/dll.cpp
--- old/unrar/dll.cpp   2013-09-24 20:08:23.0 +0200
+++ new/unrar/dll.cpp   2013-11-12 09:00:45.0 +0100
@@ -73,7 +73,16 @@
 }
 if (!Data-Arc.IsArchive(false))
 {
-  r-OpenResult=Data-Cmd.DllError!=0 ? 
Data-Cmd.DllError:ERAR_BAD_ARCHIVE;
+  if (Data-Cmd.DllError!=0)
+r-OpenResult=Data-Cmd.DllError;
+  else
+  {
+RAR_EXIT ErrCode=ErrHandler.GetErrorCode();
+if (ErrCode!=RARX_SUCCESS  ErrCode!=RARX_WARNING)
+  r-OpenResult=RarErrorToDll(ErrCode);
+else
+  r-OpenResult=ERAR_BAD_ARCHIVE;
+  }
   delete Data;
   return NULL;
 }
@@ -197,7 +206,7 @@
   else
 return Code;
 }
-wcsncpy(D-ArcNameW,hd-FileName,ASIZE(D-ArcNameW));
+wcsncpy(D-ArcNameW,Data-Arc.FileName,ASIZE(D-ArcNameW));
 WideToChar(D-ArcNameW,D-ArcName,ASIZE(D-ArcName));
 
 wcsncpy(D-FileNameW,hd-FileName,ASIZE(D-FileNameW));
@@ -419,6 +428,8 @@
   return ERAR_ECREATE;
 case RARX_MEMORY:
   return ERAR_NO_MEMORY;
+case RARX_BADPWD:
+  return ERAR_BAD_PASSWORD;
 case RARX_SUCCESS:
   return ERAR_SUCCESS; // 0.
 default:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.hpp new/unrar/dll.hpp
--- old/unrar/dll.hpp   2013-09-24 20:08:23.0 +0200
+++ new/unrar/dll.hpp   2013-11-12 09:00:45.0 +0100
@@ -17,6 +17,8 @@
 #define ERAR_SMALL_BUF  20
 #define ERAR_UNKNOWN21
 #define ERAR_MISSING_PASSWORD   22
+#define ERAR_EREFERENCE 23

commit unrar for openSUSE:Factory:NonFree

2013-10-21 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-10-21 15:15:44

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-09-04 
14:05:58.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-10-21 
15:15:45.0 +0200
@@ -1,0 +2,6 @@
+Mon Oct 21 11:23:34 UTC 2013 - idon...@suse.com
+
+- Update to 5.0.12
+  * No changelog
+
+---

Old:

  unrarsrc-5.0.11.tar.gz

New:

  unrarsrc-5.0.12.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.ohUiAq/_old  2013-10-21 15:15:46.0 +0200
+++ /var/tmp/diff_new_pack.ohUiAq/_new  2013-10-21 15:15:46.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_11
+%define libsuffix 5_0_12
 
 Name:   unrar
-Version:5.0.11
+Version:5.0.12
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.11.tar.gz - unrarsrc-5.0.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2013-08-22 15:10:37.0 +0200
+++ new/unrar/archive.cpp   2013-09-24 20:08:23.0 +0200
@@ -202,8 +202,15 @@
 MarkHead.HeadSize=SIZEOF_MARKHEAD3;
 
   // Skip the archive encryption header if any and read the main header.
-  while (ReadHeader()!=0  GetHeaderType()!=HEAD_MAIN)
+  while (ReadHeader()!=0)
+  {
+HEADER_TYPE Type=GetHeaderType();
+// In RAR 5.0 we need to quit after reading HEAD_CRYPT if we wish to
+// avoid the password prompt.
+if (Type==HEAD_MAIN || SilentOpen  Type==HEAD_CRYPT)
+  break;
 SeekToNext();
+  }
 
   // This check allows to make RS based recovery even if password is incorrect.
   // But we should not do it for EnableBroken or we'll get 'not RAR archive'
@@ -248,18 +255,13 @@
 
   MainComment=MainHead.CommentInHeader;
 
-#ifdef USE_QOPEN
-  if (MainHead.Locator  MainHead.QOpenOffset0  Cmd-QOpenMode!=QOPEN_NONE)
-  {
-QOpen.Init(this,false);
-QOpen.Load(MainHead.QOpenOffset);
-  }
-#endif
-
   // If we process non-encrypted archive or can request a password,
   // we set 'first volume' flag based on file attributes below.
   // It is necessary for RAR 2.x archives, which did not have 'first volume'
-  // flag in main header.
+  // flag in main header. Also for all RAR formats we need to scan until
+  // first file header to set comment flag when reading service header.
+  // Unless we are in silent mode, we need to know about presence of comment
+  // immediately after IsArchive call.
   if (!SilentOpen || !Encrypted)
   {
 SaveFilePos SavePos(*this);
@@ -269,11 +271,7 @@
 {
   HEADER_TYPE HeaderType=GetHeaderType();
   if (HeaderType==HEAD_SERVICE)
-  {
-if (SubHead.CmpName(SUBHEAD_TYPE_CMT))
-  MainComment=true;
 FirstVolume=!SubHead.SplitBefore;
-  }
   else
   {
 FirstVolume=HeaderType==HEAD_FILE  !FileHead.SplitBefore;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/arcread.cpp new/unrar/arcread.cpp
--- old/unrar/arcread.cpp   2013-08-22 15:10:37.0 +0200
+++ new/unrar/arcread.cpp   2013-09-24 20:08:23.0 +0200
@@ -365,6 +365,9 @@
 RecoveryPercent++;
 }
   }
+
+  if (hd-CmpName(SUBHEAD_TYPE_CMT))
+MainComment=true;
 }
 if ((hd-Flags  LHD_SALT)!=0)
   Raw.GetB(hd-Salt,SIZE_SALT30);
@@ -741,6 +744,24 @@
 
 if (ExtraSize!=0)
   ProcessExtra50(Raw,(size_t)ExtraSize,MainHead);
+
+#ifdef USE_QOPEN
+if (MainHead.Locator  MainHead.QOpenOffset0  
Cmd-QOpenMode!=QOPEN_NONE)
+{
+  // We seek to QO block in the end of archive when processing
+  // QOpen.Load, so we need to preserve current block positions
+  // to not break normal archive processing by calling function.
+  int64 SaveCurBlockPos=CurBlockPos,SaveNextBlockPos=NextBlockPos;
+  HEADER_TYPE SaveCurHeaderType=CurHeaderType;
+  
+  QOpen.Init(this,false);
+  QOpen.Load(MainHead.QOpenOffset);
+
+  CurBlockPos=SaveCurBlockPos;
+  NextBlockPos=SaveNextBlockPos;
+  CurHeaderType=SaveCurHeaderType;
+}
+#endif
   }
   break;
 

commit unrar for openSUSE:Factory:NonFree

2013-09-04 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-09-04 14:05:56

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-08-04 
17:24:26.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-09-04 
14:05:58.0 +0200
@@ -1,0 +2,6 @@
+Tue Sep  3 14:45:15 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.11.
+  * Based on final rar 5.0.0.
+
+---

Old:

  unrarsrc-5.0.10.tar.gz

New:

  unrarsrc-5.0.11.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.d5k3SN/_old  2013-09-04 14:05:59.0 +0200
+++ /var/tmp/diff_new_pack.d5k3SN/_new  2013-09-04 14:05:59.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_10
+%define libsuffix 5_0_11
 
 Name:   unrar
-Version:5.0.10
+Version:5.0.11
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.10.tar.gz - unrarsrc-5.0.11.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2013-08-02 15:30:11.0 +0200
+++ new/unrar/archive.cpp   2013-08-22 15:10:37.0 +0200
@@ -131,6 +131,7 @@
 bool Archive::IsArchive(bool EnableBroken)
 {
   Encrypted=false;
+  BrokenHeader=false; // Might be left from previous volume.
 #ifdef USE_QOPEN
   QOpen.Unload();
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2013-08-02 15:25:47.0 +0200
+++ new/unrar/dll.rc2013-08-22 15:00:02.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 0, 8, 945
-PRODUCTVERSION 5, 0, 8, 945
+FILEVERSION 5, 0, 100, 965
+PRODUCTVERSION 5, 0, 100, 965
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.0.8\0
-  VALUE ProductVersion, 5.0.8\0
+  VALUE FileVersion, 5.0.0\0
+  VALUE ProductVersion, 5.0.0\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2013\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/list.cpp new/unrar/list.cpp
--- old/unrar/list.cpp  2013-08-02 15:30:12.0 +0200
+++ new/unrar/list.cpp  2013-08-22 15:10:37.0 +0200
@@ -270,7 +270,27 @@
 }
   mprintf(L\n%12ls: %ls,St(MListType),Type);
   if (hd.RedirType!=FSREDIR_NONE)
-mprintf(L\n%12ls: %ls,St(MListTarget),hd.RedirName);
+if (Format==RARFMT15)
+{
+  char LinkTargetA[NM];
+  if (Arc.FileHead.Encrypted)
+  {
+// Link data are encrypted. We would need to ask for password
+// and initialize decryption routine to display the link target.
+strncpyz(LinkTargetA,*-?-,ASIZE(LinkTargetA));
+  }
+  else
+  {
+int DataSize=(int)Min(hd.PackSize,ASIZE(LinkTargetA)-1);
+Arc.Read(LinkTargetA,DataSize);
+LinkTargetA[DataSize  0 ? DataSize : 0] = 0;
+  }
+  wchar LinkTarget[NM];
+  CharToWide(LinkTargetA,LinkTarget,ASIZE(LinkTarget));
+  mprintf(L\n%12ls: %ls,St(MListTarget),LinkTarget);
+}
+else
+  mprintf(L\n%12ls: %ls,St(MListTarget),hd.RedirName);
 }
 if (!hd.Dir)
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/options.hpp new/unrar/options.hpp
--- old/unrar/options.hpp   2013-08-02 15:30:12.0 +0200
+++ new/unrar/options.hpp   2013-08-22 15:10:37.0 +0200
@@ -168,6 +168,7 @@
 
 
 
+
 #ifdef RARDLL
 wchar DllDestName[NM];
 int DllOpMode;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/pathfn.cpp new/unrar/pathfn.cpp
--- old/unrar/pathfn.cpp2013-08-02 15:30:12.0 +0200
+++ new/unrar/pathfn.cpp2013-08-22 15:10:37.0 +0200
@@ -973,6 +973,10 @@
 return false;
   wcsncpy(Dest,Prefix,PrefixLength);
   

commit unrar for openSUSE:Factory:NonFree

2013-08-04 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-08-04 17:24:24

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-07-16 
07:40:59.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-08-04 
17:24:26.0 +0200
@@ -1,0 +2,16 @@
+Sun Aug  4 07:59:37 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.10.
+  * Added missing makefile.
+
+---
+Sun Aug  4 00:17:40 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.9.
+  * No changelog available.
+- Add acknow.txt to docs.
+- Don't install readme.txt to the libunrar package.
+- Temporarily use the makefile file from the previous version
+  (missing in the source).
+
+---

Old:

  unrarsrc-5.0.8.tar.gz

New:

  unrarsrc-5.0.10.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.0WW4dl/_old  2013-08-04 17:24:27.0 +0200
+++ /var/tmp/diff_new_pack.0WW4dl/_new  2013-08-04 17:24:27.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_8
+%define libsuffix 5_0_10
 
 Name:   unrar
-Version:5.0.8
+Version:5.0.10
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives
@@ -61,6 +61,7 @@
 %setup -q -n %{name}
 %patch1
 %patch2 -p1
+sed -i 's/\r$//' *.txt
 
 %build
 make %{?_smp_mflags} -f makefile CXXFLAGS=%{optflags} \
@@ -86,18 +87,18 @@
 
 %files
 %defattr(-,root,root)
-%doc license.txt readme.txt
+%doc acknow.txt license.txt readme.txt
 %{_bindir}/unrar
 %doc %{_mandir}/man1/unrar.1*
 
 %files -n libunrar%{libsuffix}
 %defattr(-,root,root)
-%doc license.txt readme.txt
+%doc license.txt
 %{_libdir}/*.so.%{majorversion}*
 
 %files -n libunrar-devel
 %defattr(-,root,root)
-%doc license.txt readme.txt
+%doc acknow.txt license.txt readme.txt
 %{_includedir}/*
 %{_libdir}/*.so
 

++ unrarsrc-5.0.8.tar.gz - unrarsrc-5.0.10.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/blake2s.cpp new/unrar/blake2s.cpp
--- old/unrar/blake2s.cpp   2013-07-13 13:30:21.0 +0200
+++ new/unrar/blake2s.cpp   2013-08-02 15:30:12.0 +0200
@@ -57,7 +57,7 @@
 /* init2 xors IV with input parameter block */
 void blake2s_init_param( blake2s_state *S, uint32 node_offset, uint32 
node_depth)
 {
-  S-init(); // Clean and set pointers.
+  S-init(); // Clean data.
   for( int i = 0; i  8; ++i )
 S-h[i] = blake2s_IV[i];
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/blake2s.hpp new/unrar/blake2s.hpp
--- old/unrar/blake2s.hpp   2013-07-13 13:30:21.0 +0200
+++ new/unrar/blake2s.hpp   2013-08-02 15:30:12.0 +0200
@@ -21,7 +21,10 @@
 {
   enum { BLAKE_ALIGNMENT = 64 };
 
-  byte ubuf[48 + 2 * BLAKE2S_BLOCKBYTES + BLAKE_ALIGNMENT];
+  // buffer and uint32 h[8], t[2], f[2];
+  enum { BLAKE_DATA_SIZE = 48 + 2 * BLAKE2S_BLOCKBYTES };
+
+  byte ubuf[BLAKE_DATA_SIZE + BLAKE_ALIGNMENT];
 
   byte   *buf;   // byte   buf[2 * BLAKE2S_BLOCKBYTES].
   uint32 *h, *t, *f; // uint32 h[8], t[2], f[2].
@@ -29,14 +32,47 @@
   size_t   buflen;
   byte  last_node;
 
-  void init()
+  blake2s_state()
+  {
+set_pointers();
+  }
+
+  // Required when we declare and assign in the same command.
+  blake2s_state(blake2s_state st)
   {
-memset( this, 0, sizeof( blake2s_state ) );
+set_pointers();
+*this=st;
+  }
+
+  void set_pointers()
+  {
+// Set aligned pointers. Must be done in constructor, not in Init(),
+// so assignments like 'blake2sp_state res=blake2ctx' work correctly
+// even if blake2sp_init is not called for 'res'.
 buf = (byte *) ALIGN_VALUE(ubuf, BLAKE_ALIGNMENT);
 h   = (uint32 *) (buf + 2 * BLAKE2S_BLOCKBYTES);
 t   = h + 8;
 f   = t + 2;
   }
+
+  void init()
+  {
+memset( ubuf, 0, sizeof( ubuf ) );
+buflen = 0;
+last_node = 0;
+  }
+
+  // Since we use pointers, the default = would work incorrectly.
+  blake2s_state operator = (blake2s_state st)
+  {
+if (this != st)
+{
+  memcpy(buf, st.buf, BLAKE_DATA_SIZE);
+  buflen = st.buflen;
+  last_node = st.last_node;
+}
+return *this;
+  }
 };
 
 
@@ -44,10 +80,10 @@
 class ThreadPool;
 #endif
 
-typedef struct __blake2sp_state
+struct blake2sp_state
 {
-  blake2s_state 

commit unrar for openSUSE:Factory:NonFree

2013-07-15 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-07-16 07:40:57

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-06-28 
19:29:46.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-07-16 
07:40:59.0 +0200
@@ -1,0 +2,6 @@
+Sun Jul 14 06:44:02 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.8.
+  * No changes announced for unrar.
+
+---

Old:

  unrarsrc-5.0.7.tar.gz

New:

  unrarsrc-5.0.8.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.8QwbjE/_old  2013-07-16 07:41:00.0 +0200
+++ /var/tmp/diff_new_pack.8QwbjE/_new  2013-07-16 07:41:00.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_7
+%define libsuffix 5_0_8
 
 Name:   unrar
-Version:5.0.7
+Version:5.0.8
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.7.tar.gz - unrarsrc-5.0.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2013-06-19 12:36:26.0 +0200
+++ new/unrar/cmddata.cpp   2013-07-13 13:30:21.0 +0200
@@ -673,7 +673,6 @@
 case '0':
   Recurse=RECURSE_WILDCARDS;
   break;
-#ifndef _WIN_CE
 case 'I':
   {
 Priority=atoiw(Switch+2);
@@ -690,7 +689,6 @@
 SetPriority(Priority);
   }
   break;
-#endif
   }
   break;
 case 'S':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2013-06-19 12:14:48.0 +0200
+++ new/unrar/dll.rc2013-07-13 12:55:13.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 0, 6, 901
-PRODUCTVERSION 5, 0, 6, 901
+FILEVERSION 5, 0, 7, 925
+PRODUCTVERSION 5, 0, 7, 925
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.0.6\0
-  VALUE ProductVersion, 5.0.6\0
+  VALUE FileVersion, 5.0.7\0
+  VALUE ProductVersion, 5.0.7\0
   VALUE LegalCopyright, Copyright � Alexander Roshal 1993-2013\0
   VALUE OriginalFilename, Unrar.dll\0
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/errhnd.cpp new/unrar/errhnd.cpp
--- old/unrar/errhnd.cpp2013-06-19 12:36:26.0 +0200
+++ new/unrar/errhnd.cpp2013-07-13 13:30:21.0 +0200
@@ -288,7 +288,7 @@
 #ifdef _WIN_ALL
   // Let the main thread to handle 'throw' and destroy file objects.
   Sleep(200);
-#if defined(USE_RC)  !defined(SFX_MODULE)  !defined(_WIN_CE)  
!defined(RARDLL)
+#if defined(USE_RC)  !defined(SFX_MODULE)  !defined(RARDLL)
   ExtRes.UnloadDLL();
 #endif
   exit(RARX_USERBREAK);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/extract.cpp new/unrar/extract.cpp
--- old/unrar/extract.cpp   2013-06-19 12:36:26.0 +0200
+++ new/unrar/extract.cpp   2013-07-13 13:30:21.0 +0200
@@ -231,7 +231,7 @@
   HEADER_TYPE HeaderType=Arc.GetHeaderType();
   if (HeaderType!=HEAD_FILE)
   {
-#if !defined(SFX_MODULE)  !defined(_WIN_CE)
+#ifndef SFX_MODULE
 if (HeaderType==HEAD3_OLDSERVICE  PrevExtracted)
   SetExtraInfo20(Cmd,Arc,DestFileName);
 #endif
@@ -615,12 +615,12 @@
   bool BrokenFile=false;
   
   // Checksum is not calculated in skip solid mode for performance reason.
-  if (!SkipSolid  ShowChecksum)
+  if (!SkipSolid)
   {
 if (!WrongPassword  ValidCRC)
 {
 #ifndef GUI
-  if (Command!='P'  Command!='I')
+  if (Command!='P'  Command!='I'  ShowChecksum)
 mprintf(L%s%s ,Cmd-DisablePercentage ? L :L\b\b\b\b\b ,
   Arc.FileHead.FileHash.Type==HASH_NONE ? L  ?:St(MOk));
 #endif
@@ -671,7 +671,7 @@
   Cmd-xctime==EXTTIME_NONE ? NULL:Arc.FileHead.ctime,
   Cmd-xatime==EXTTIME_NONE ? NULL:Arc.FileHead.atime);
 CurFile.Close();
-#if defined(_WIN_ALL)  !defined(_WIN_CE)  !defined(SFX_MODULE)
+#if defined(_WIN_ALL)  

commit unrar for openSUSE:Factory:NonFree

2013-06-28 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-06-28 19:29:45

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2013-06-13 
22:45:30.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-06-28 
19:29:46.0 +0200
@@ -1,0 +2,6 @@
+Fri Jun 28 07:33:41 UTC 2013 - idon...@suse.com
+
+- Update to 5.0.7
+  * No changelog available
+
+---

Old:

  unrarsrc-5.0.6.tar.gz

New:

  unrarsrc-5.0.7.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.Puvoy5/_old  2013-06-28 19:29:47.0 +0200
+++ /var/tmp/diff_new_pack.Puvoy5/_new  2013-06-28 19:29:47.0 +0200
@@ -18,10 +18,10 @@
 
 # majorversion should match the major version number.
 %define majorversion 5
-%define libsuffix 5_0_6
+%define libsuffix 5_0_7
 
 Name:   unrar
-Version:5.0.6
+Version:5.0.7
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives

++ unrarsrc-5.0.6.tar.gz - unrarsrc-5.0.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.cpp new/unrar/archive.cpp
--- old/unrar/archive.cpp   2013-06-03 09:47:46.0 +0200
+++ new/unrar/archive.cpp   2013-06-19 12:36:26.0 +0200
@@ -52,13 +52,24 @@
 }
 
 
+Archive::~Archive()
+{
+  if (DummyCmd)
+delete Cmd;
+}
+
 
 #ifndef SHELL_EXT
 void Archive::CheckArc(bool EnableBroken)
 {
   if (!IsArchive(EnableBroken))
   {
-Log(FileName,St(MBadArc),FileName);
+// If FailedHeaderDecryption is set, we already reported that archive
+// password is incorrect.
+if (!FailedHeaderDecryption)
+{
+  Log(FileName,St(MBadArc),FileName);
+}
 ErrHandler.Exit(RARX_FATAL);
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/archive.hpp new/unrar/archive.hpp
--- old/unrar/archive.hpp   2013-06-03 09:47:46.0 +0200
+++ new/unrar/archive.hpp   2013-06-19 12:36:26.0 +0200
@@ -60,6 +60,7 @@
 #endif
   public:
 Archive(RAROptions *InitCmd=NULL);
+~Archive();
 RARFORMAT IsSignature(const byte *D,size_t Size);
 bool IsArchive(bool EnableBroken);
 size_t SearchBlock(HEADER_TYPE HeaderType);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/cmddata.cpp new/unrar/cmddata.cpp
--- old/unrar/cmddata.cpp   2013-06-03 09:47:46.0 +0200
+++ new/unrar/cmddata.cpp   2013-06-19 12:36:26.0 +0200
@@ -392,7 +392,10 @@
 case 'P':
   EncryptHeaders=true;
   if (Switch[2]!=0)
+  {
 Password.Set(Switch+2);
+cleandata((void *)Switch,wcslen(Switch)*sizeof(Switch[0]));
+  }
   else
 if (!Password.IsSet())
 {
@@ -631,7 +634,10 @@
 eprintf(L\n);
   }
   else
+  {
 Password.Set(Switch+1);
+cleandata((void *)Switch,wcslen(Switch)*sizeof(Switch[0]));
+  }
   break;
 #ifndef SFX_MODULE
 case 'Q':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/crypt3.cpp new/unrar/crypt3.cpp
--- old/unrar/crypt3.cpp2013-06-03 09:47:46.0 +0200
+++ new/unrar/crypt3.cpp2013-06-19 12:36:26.0 +0200
@@ -1,6 +1,5 @@
 struct CryptKeyCacheItem
 {
-#ifndef _SFX_RTL_
   CryptKeyCacheItem()
   {
 Password.Set(L);
@@ -12,7 +11,7 @@
 cleandata(AESInit,sizeof(AESInit));
 cleandata(Password,sizeof(Password));
   }
-#endif
+
   byte AESKey[16],AESInit[16];
   SecPassword Password;
   bool SaltPresent;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unrar/dll.rc new/unrar/dll.rc
--- old/unrar/dll.rc2013-06-03 09:37:36.0 +0200
+++ new/unrar/dll.rc2013-06-19 12:14:48.0 +0200
@@ -2,8 +2,8 @@
 #include commctrl.h
 
 VS_VERSION_INFO VERSIONINFO
-FILEVERSION 5, 0, 5, 885
-PRODUCTVERSION 5, 0, 5, 885
+FILEVERSION 5, 0, 6, 901
+PRODUCTVERSION 5, 0, 6, 901
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_APP
 {
@@ -14,8 +14,8 @@
   VALUE CompanyName, Alexander Roshal\0
   VALUE ProductName, RAR decompression library\0
   VALUE FileDescription, RAR decompression library\0
-  VALUE FileVersion, 5.0.5\0
-  VALUE ProductVersion, 5.0.5\0
+  VALUE FileVersion, 5.0.6\0
+  VALUE ProductVersion, 

commit unrar for openSUSE:Factory:NonFree

2013-06-05 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2013-06-05 13:38:43

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2012-10-22 
22:12:54.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2013-06-05 
14:24:53.0 +0200
@@ -1,0 +2,22 @@
+Tue May 28 13:57:34 UTC 2013 - lazy.k...@opensuse.org
+
+- Update to 5.0.5.
+  * Support new RAR 5.0 archiving format.
+  * 'v' and 'l' commands display archived file names in the end of
+line, not in that beginning as before. Also some fields
+previously available in 'l' and 'v' output are now shown only
+by 'lt' and 'vt'.
+'vt' and 'lt' commands provide the detailed multiline
+information for every archived file.
+'vta' and 'lta' also include service headers into list.
+- Drop unrarsrc-3.9-variablesize.patch and
+  unrar-4.2.4-no_return.patch (fixed upstream).
+- Update unrarsrc-*-soname.patch.
+- Disable unrarsrc-4.2.4-gcc.patch (until anyone confirms we really
+  need it).
+- Clean up make string (remove dupes provided by optflags
+  macro).
+- Correct libunrar Summary (remove v3).
+- Update manual page.
+
+---

Old:

  unrar-4.2.4-no_return.patch
  unrarsrc-3.9-variablesize.patch
  unrarsrc-4.2.4-soname.patch
  unrarsrc-4.2.4.tar.gz

New:

  unrarsrc-5.0.5-soname.patch
  unrarsrc-5.0.5.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.is0Jus/_old  2013-06-05 14:24:55.0 +0200
+++ /var/tmp/diff_new_pack.is0Jus/_new  2013-06-05 14:24:55.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,11 +17,11 @@
 
 
 # majorversion should match the major version number.
-%define majorversion 4
-%define libsuffix 4_2_4
+%define majorversion 5
+%define libsuffix 5_0_5
 
 Name:   unrar
-Version:4.2.4
+Version:5.0.5
 Release:0
 License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives
@@ -30,11 +30,9 @@
 Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
 Patch1: unrarsrc-3.9-types.patch
+# PATCH-NEEDS-REBASE unrarsrc-4.2.4-gcc.patch -- fix for old gcc version
 Patch2: unrarsrc-4.2.4-gcc.patch
-Patch3: unrarsrc-3.9-variablesize.patch
-Patch4: unrarsrc-4.2.4-soname.patch
-# PATCH-FIX-UPSTREAM unrar-4.2.4-no_return.patch lazy.k...@opensuse.org -- fix 
no-return-in-nonvoid-function error
-Patch5: unrar-4.2.4-no_return.patch
+Patch4: unrarsrc-5.0.5-soname.patch
 BuildRequires:  gcc-c++
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -45,7 +43,7 @@
 
 %package -n libunrar%{libsuffix}
 
-Summary:Decompress library for RAR v3 archives
+Summary:Decompress library for RAR archives
 Group:  System/Libraries
 
 %description -n libunrar%{libsuffix}
@@ -64,20 +62,16 @@
 %prep
 %setup -q -n %{name}
 %patch1
-%patch2
-%patch3
-%patch4
-%patch5
+#%%patch2
+%patch4 -p1
 
 %build
-make %{?_smp_mflags} -f makefile.unix CXXFLAGS=%{optflags} -Wall \
--fPIC -fmessage-length=0 -fno-strict-aliasing -fstack-protector \
-STRIP=true
+make %{?_smp_mflags} -f makefile CXXFLAGS=%{optflags} \
+-fPIC -fno-strict-aliasing STRIP=true
 #bnc#693890
 rm -f *.o
-make %{?_smp_mflags} -f makefile.unix lib libversion=%{version} \
-CXXFLAGS=%{optflags} -Wall -fPIC -fmessage-length=0 \
--fno-strict-aliasing -fstack-protector STRIP=true
+make %{?_smp_mflags} -f makefile lib libversion=%{version} \
+CXXFLAGS=%{optflags} -fPIC -fno-strict-aliasing STRIP=true
 
 %install
 install -Dm 0755 unrar %{buildroot}%{_bindir}/unrar

++ unrar.1 ++
--- /var/tmp/diff_new_pack.is0Jus/_old  2013-06-05 14:24:55.0 +0200
+++ /var/tmp/diff_new_pack.is0Jus/_new  2013-06-05 14:24:55.0 +0200
@@ -1,156 +1,211 @@
-.\ DO NOT MODIFY THIS FILE!  It was generated by help2man 1.38.2.
-.TH UNRAR 1 October 2012 unrar  User Commands
+.\ Copyright (C) 2013 Kyrill Detinov lazy.k...@opensuse.org
+.\
+.\ This manual page is distributed under the terms
+.\ of the GNU Free Documentation License version 1.3.
+.\
+.TH UNRAR 1 2013-05-28 unrar 5.0 User Commands
+
 .SH NAME
-unrar \- manual page 

commit unrar for openSUSE:Factory:NonFree

2012-10-22 Thread h_root
Hello community,

here is the log from the commit of package unrar for openSUSE:Factory:NonFree 
checked in at 2012-10-22 22:12:52

Comparing /work/SRC/openSUSE:Factory:NonFree/unrar (Old)
 and  /work/SRC/openSUSE:Factory:NonFree/.unrar.new (New)


Package is unrar, Maintainer is vdziewie...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory:NonFree/unrar/unrar.changes  2011-09-23 
15:03:26.0 +0200
+++ /work/SRC/openSUSE:Factory:NonFree/.unrar.new/unrar.changes 2012-10-22 
22:12:54.0 +0200
@@ -1,0 +2,26 @@
+Fri Oct 19 19:01:52 UTC 2012 - cfarr...@suse.com
+
+- license update: SUSE-NonFree
+  The description of SUSE-Permissive on the spreadsheet linked from
+  license.opensuse.org would imply that such a licensed software would be
+  suitable for Factory. For unrar this is clearly not the case - hence
+  SUSE-NonFree
+
+---
+Fri Oct 12 19:43:44 UTC 2012 - lazy.k...@opensuse.org
+
+- Update to 4.2.4.
+  * No changelog provided.
+- Add unrar-4.2.4-no_return.patch: fix no-return-in-nonvoid-function
+  error.
+- Change License tag: SUSE-Permissive.
+- Use full URL as a source.
+- Update unrarsrc-*-gcc and unrarsrc-*-soname patches.
+- Correct libunrar Group: System/Libraries.
+- Remove Provides: libunrar3_9_10-devel (no dependent packages
+  found).
+- Update man page.
+- Mark man as doc.
+- Clean up and formatting spec.
+
+---

Old:

  unrarsrc-3.9-gcc.patch
  unrarsrc-3.9-soname.patch
  unrarsrc-4.0.4.tar.bz2

New:

  unrar-4.2.4-no_return.patch
  unrarsrc-4.2.4-gcc.patch
  unrarsrc-4.2.4-soname.patch
  unrarsrc-4.2.4.tar.gz



Other differences:
--
++ unrar.spec ++
--- /var/tmp/diff_new_pack.CvgiOn/_old  2012-10-22 22:12:55.0 +0200
+++ /var/tmp/diff_new_pack.CvgiOn/_new  2012-10-22 22:12:55.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unrar
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,27 +15,27 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 # majorversion should match the major version number.
 %define majorversion 4
-%define libsuffix 4_0_4
+%define libsuffix 4_2_4
 
 Name:   unrar
-BuildRequires:  gcc-c++
-Version:4.0.4
-Release:6
-Group:  Productivity/Archiving/Compression
-License:Unrar License. Freely distributable
-#http://www.rarlab.com/rar/unrarsrc-%%{version}.tar.gz
-Url:http://www.rarlab.com
+Version:4.2.4
+Release:0
+License:SUSE-NonFree
 Summary:A program to extract, test, and view RAR archives
-Source: %{name}src-%{version}.tar.bz2
+Url:http://www.rarlab.com
+Group:  Productivity/Archiving/Compression
+Source0:http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz
 Source1:unrar.1
 Patch1: unrarsrc-3.9-types.patch
-Patch2: unrarsrc-3.9-gcc.patch
+Patch2: unrarsrc-4.2.4-gcc.patch
 Patch3: unrarsrc-3.9-variablesize.patch
-Patch4: unrarsrc-3.9-soname.patch
+Patch4: unrarsrc-4.2.4-soname.patch
+# PATCH-FIX-UPSTREAM unrar-4.2.4-no_return.patch lazy.k...@opensuse.org -- fix 
no-return-in-nonvoid-function error
+Patch5: unrar-4.2.4-no_return.patch
+BuildRequires:  gcc-c++
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -43,28 +43,19 @@
 and developed for extracting, testing, and viewing the contents of
 archives created with the RAR archiver.
 
-Authors:
-
-Eugene Roshal ros...@creabel.com
-
 %package -n libunrar%{libsuffix}
 
-
-License:Unrar License. Freely distributable
 Summary:Decompress library for RAR v3 archives
-Group:  Productivity/Archiving/Compression
+Group:  System/Libraries
 
 %description -n libunrar%{libsuffix}
 The libunrar library allows programs linking against it to decompress
 existing RAR v3 archives.
 
-
 %package -n libunrar-devel
-License:Unrar License. Freely distributable
 Summary:Development files for libunrar
 Group:  Development/Libraries/C and C++
-Requires:   libunrar%{libsuffix} = %{version}-%{release}
-Provides:   libunrar3_9_10-devel
+Requires:   libunrar%{libsuffix} = %{version}
 
 %description -n libunrar-devel
 The libunrar-devel package contains libraries and header files for
@@ -76,26 +67,28 @@
 %patch2
 %patch3
 %patch4
+%patch5
 
 %build
-make -j %{?jobs}