mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
af9d3235e3
PR: ports/148428 Submitted by: Alex Kozlov (maintainer)
12 lines
314 B
C++
12 lines
314 B
C++
Index: src/tarhelper.cpp
|
|
@@ -244,7 +244,8 @@
|
|
retval = false;
|
|
else
|
|
{
|
|
- if (strcmp(header.magic, "ustar ") != 0)
|
|
+ if (strcmp(header.magic, "ustar ") != 0 && /* GNU tar format */
|
|
+ strcmp(header.magic, "ustar") != 0) /* POSIX tar format */
|
|
retval = false;
|
|
}
|
|
fclose (f);
|