News for hackers. Stuff that matters.
Re:Information on the revocation of WinRAR 5.91 digital cert... by AlexandrB on Wednesday August 26, 2020 @12:46PM (#24284253)
> People who don't know any better alternatives continue to use it

Genuine question: what are the better alternatives?

Re:Information on the revocation of WinRAR 5.91 digital cert... by theandrewbailey on Wednesday August 26, 2020 @12:56PM (#24284377)
Peazip: https://peazip.github.io/

I used to use 7zip, but switched when I discovered that Peazip doesn't extract to a temporary directory when extracting (thus, saving extra I/O work). It directly extracts into the target directory.

Re:Information on the revocation of WinRAR 5.91 digital cert... by jasperry on Wednesday August 26, 2020 @01:04PM (#24284473)
In response to WayToDoor, some archives contain thousands of files, and it's essentially doubling the number of filesystem operations by putting them in a temp directory and then moving. If the temp directory is on a different drive from the destination, then it's recopying all the data.

I thought the creation of the files in the temp directory was an unavoidable artifact of how drag-and-drop worked in Windows. If peazip can get around this, I might check it out.

Re:Information on the revocation of WinRAR 5.91 digital cert... by ta89764894 on Wednesday August 26, 2020 @02:54PM (#24285893)
Avoiding a temp directories is usually a good thing, unless the temp directory allows you to avoid operations on removable drives. I've noticed on windows with drives marked as "removable" it's almost always faster to copy an archive to the harddrive (non-removable drive) extract it and copy the contents back. I'm assuming this is because of the different or lack of caching available for removable drives. Random read/write is typically a lot slower that sequential read/write so an ideal solution would take into account the relative performance of different drives before with making or not making a temp folder.
Re:Information on the revocation of WinRAR 5.91 digital cert... by WayToDoor on Wednesday August 26, 2020 @12:58PM (#24284391)
Is a file move that big of an IO operation?
Re:Information on the revocation of WinRAR 5.91 digital cert... by vore on Wednesday August 26, 2020 @01:03PM (#24284459)
I run into the issue sometimes cross-volume, where the file gets extracted into a temporary directory then has to be copied to the actual destination, into e.g. a network volume or second hard disk.
Re:Information on the revocation of WinRAR 5.91 digital cert... by iMerNibor on Wednesday August 26, 2020 @01:06PM (#24284512)
If it's moving it to a different drive/partition it'll have to copy it again

Moving many (small) files can also be quite slow

Re:Information on the revocation of WinRAR 5.91 digital cert... by theandrewbailey on Wednesday August 26, 2020 @01:05PM (#24284500)
Back when I used Winzip/7zip, they didn't move files: they copied files. When you're working with files measured in gigabytes, the speedup is quite noticeable.
Re:Information on the revocation of WinRAR 5.91 digital cert... by sumtechguy on Wednesday August 26, 2020 @01:37PM (#24284928)
depends on the move operation. 1 file you would not notice it. Thousands it would add up. Across 2 physical drives you may also notice it if the file is big enough.
Re:Information on the revocation of WinRAR 5.91 digital cert... by saxonww on Wednesday August 26, 2020 @05:10PM (#24287296)
For zip files in particular, you can just right click and 'Extract all' in modern versions of Windows. I believe you can also double-click to open them like folders in Explorer.

7-Zip covers the majority of other formats you're likely to encounter.

Re:Information on the revocation of WinRAR 5.91 digital cert... by geogra4 on Wednesday August 26, 2020 @12:46PM (#24284259)
7zip
Re:Information on the revocation of WinRAR 5.91 digital cert... by Semaphor on Wednesday August 26, 2020 @12:52PM (#24284324)
I haven’t used WinRAR in ages, but what makes 7zip (which I use as well) better?
Re:Information on the revocation of WinRAR 5.91 digital cert... by greatgib on Wednesday August 26, 2020 @01:46PM (#24285049)
7zip is completely free and OpenSource, and more modern.

I think that they also support more archive formats and they even have their own open format 7z.

Based on their own claims, there are also faster and more efficient than Winrar.

Re:Information on the revocation of WinRAR 5.91 digital cert... by moogly on Wednesday August 26, 2020 @08:01PM (#24288725)
Don't know about modern. Isn't the developer (Igor?) (in)famously against anything invented after 1998?
Re:Information on the revocation of WinRAR 5.91 digital cert... by olvy0 on Wednesday August 26, 2020 @03:04PM (#24286008)
It can extract files to paths of more than 260 characters, without any extra tools or registry hacks, on any version of windows (even xp). Winrar cannot. As a bonus, 7zip can also delete folders with file paths that are over 260 characters from its file manager ui. It has been one of the only programs to be able to do so for many years.
Re:Information on the revocation of WinRAR 5.91 digital cert... by xfer on Wednesday August 26, 2020 @07:22PM (#24288430)
> paths of more than 260 characters

This is the biggest joke of win32 system, how on earth after so many decades of breaking things this is still default?

Re:Information on the revocation of WinRAR 5.91 digital cert... by KiwiJohnno on Friday August 28, 2020 @02:14AM (#24301855)
To be clear, this is a limitation in some of the very old Win32 APIs, not the kernel itself or the filesystem.

The size of the field in these APIs is a fixed maximum length and can't be changed, because that would break everything. If an app called into the kernel and got a string longer than 260 chars back, then boom, instant buffer overflow.

There are other, newer Win32 APIs for all of these that don't have that limitation, but apps have to be changed to use them.

Re:Information on the revocation of WinRAR 5.91 digital cert... by olvy0 on Friday August 28, 2020 @01:14PM (#24307398)
You're right in that the limitation isn't in the kernel or the file system, but it's not in the API either. Even the oldest functions in the Windows API can accept long filenames, up to 32,767 characters. This has been possible since Windows NT, for about 20 years now (I think).

But, they're only accept file paths this long if those paths begin with the magic sequence \\?\ [0]. So each "normal" path has to be "normalized" to this format in order to be longer than 260 characters. This is a usually a trivial operation of appending this sequence, but it's slightly much complicated than it looks, and also not well known for some reason.

I'm not aware of any newer APIs that can natively accept long path names, btw,

The Windows Explorer shell, and so the standard Open File dialog used by most application, uses the "non-normalized" form without the magic prefix, and so can't be used to view, delete or create those long paths. So to bring this discussion back to the original post: 7zip is very good to have on your system if only to be used as a viewer for files on those long paths, and in order to delete them, since Windows explorer can't...

Incidentally, the other common application which can handle long paths is git for windows.

As for the much hyped ability in Windows 10 to enable the support natively : it's still not enabled by default, so you can't count on it being present on user's machines.

BTW, I'm using an open source library for dotnet called Zeta Long Path, which does exactly this (appending this magic sequence) and works wonderfully well, even on Windows XP. But you're right that most people who use those APIs directly usually allocate a 260 char array and use it, and if Microsoft would suddenly change the behavior and started returning actual long paths then those applications would blow up.

[0] https://docs.microsoft.com/en-us/windows/win32/fileio/naming...

[1] https://github.com/UweKeim/ZetaLongPaths

Re:Information on the revocation of WinRAR 5.91 digital cert... by Seanambers on Wednesday August 26, 2020 @06:04PM (#24287819)
Amount of times this has been an issue with using Winrar for 15+ years : zero.

I'm amazed at all the comments calling for 7zip as the one and only. winrar works just fine so does windows zip function. If you have an edge case, yeah then you need something that can handle it.

Re:Information on the revocation of WinRAR 5.91 digital cert... by olvy0 on Thursday August 27, 2020 @12:54AM (#24290238)
FWIW I agree with you, personally I also prefer Winrar, and have used it for many years with zero issues. I like its ui better than 7zip's. But the 260 chars is the one edge case that happened to be important to me and so I decided to switch.
Re:Information on the revocation of WinRAR 5.91 digital cert... by olyjohn on Wednesday August 26, 2020 @06:22PM (#24287988)
WinRAR works fine. But it's $29. 7zip works fine and is not $29.
Re:Information on the revocation of WinRAR 5.91 digital cert... by PrimeDirective on Wednesday August 26, 2020 @12:48PM (#24284271)
7zip (the archive manager, not the compression format), at least for Windows
Re:Information on the revocation of WinRAR 5.91 digital cert... by breakfastduck on Wednesday August 26, 2020 @12:47PM (#24284265)
Yep, +1 for 7zip
Re:Information on the revocation of WinRAR 5.91 digital cert... by pbalau on Wednesday August 26, 2020 @06:39PM (#24288131)
TotalCommander.