1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/games/lordsawar/files/patch-tarhelper.cpp
Max Brazhnikov af9d3235e3 Update to 0.1.9
PR:		ports/148428
Submitted by:	Alex Kozlov (maintainer)
2010-07-10 11:06:18 +00:00

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);