diff options
author | barner <barner@FreeBSD.org> | 2005-09-23 16:44:48 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-09-23 16:44:48 +0800 |
commit | 13b46b927e06158fc05bd4cc8bb687dca0f5ef84 (patch) | |
tree | 1fe1ef9a44312a50a6fa97a66ad5ddc94a1bbd7a /games | |
parent | 9fa720a1f21150965257e2607d2b440ef58bf45b (diff) | |
download | freebsd-ports-gnome-13b46b927e06158fc05bd4cc8bb687dca0f5ef84.tar.gz freebsd-ports-gnome-13b46b927e06158fc05bd4cc8bb687dca0f5ef84.tar.zst freebsd-ports-gnome-13b46b927e06158fc05bd4cc8bb687dca0f5ef84.zip |
- Fix segmentation fault (it was calling "closedir()" with a NULL pointer
as an argument, in Linux "closedir()" ignores it, but in
FreeBSD it crashes).
- Fix wrapper script (arguments weren't passed to the real executable).
- Bump port revision
Submitted by: Alejandro Pulver <alejandro@varnet.biz> (maintainer)
PR: ports/86480
Diffstat (limited to 'games')
-rw-r--r-- | games/warzone/Makefile | 1 | ||||
-rw-r--r-- | games/warzone/files/patch-src_loadsave.c | 22 | ||||
-rw-r--r-- | games/warzone/files/warzone.in | 2 | ||||
-rw-r--r-- | games/warzone2100/Makefile | 1 | ||||
-rw-r--r-- | games/warzone2100/files/patch-src_loadsave.c | 22 | ||||
-rw-r--r-- | games/warzone2100/files/warzone.in | 2 |
6 files changed, 48 insertions, 2 deletions
diff --git a/games/warzone/Makefile b/games/warzone/Makefile index 4103f01a9c1f..ff544144ce9a 100644 --- a/games/warzone/Makefile +++ b/games/warzone/Makefile @@ -7,6 +7,7 @@ PORTNAME= warzone2100 PORTVERSION= 0.2.2 +PORTREVISON= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/games/warzone/files/patch-src_loadsave.c b/games/warzone/files/patch-src_loadsave.c new file mode 100644 index 000000000000..0c5689603604 --- /dev/null +++ b/games/warzone/files/patch-src_loadsave.c @@ -0,0 +1,22 @@ +--- src/loadsave.c.orig Wed Jul 27 13:33:56 2005 ++++ src/loadsave.c Thu Sep 22 15:40:54 2005 +@@ -341,7 +341,8 @@ + } + } + } +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + bLoadSaveUp = TRUE; +@@ -444,7 +445,8 @@ + DeleteFile(entry->d_name); + } + +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + diff --git a/games/warzone/files/warzone.in b/games/warzone/files/warzone.in index c8dd49cba4bb..b314ea511809 100644 --- a/games/warzone/files/warzone.in +++ b/games/warzone/files/warzone.in @@ -4,4 +4,4 @@ cd %%DATADIR%% || exit 1 -exec %%PREFIX%%/libexec/warzone +exec %%PREFIX%%/libexec/warzone "$@" diff --git a/games/warzone2100/Makefile b/games/warzone2100/Makefile index 4103f01a9c1f..ff544144ce9a 100644 --- a/games/warzone2100/Makefile +++ b/games/warzone2100/Makefile @@ -7,6 +7,7 @@ PORTNAME= warzone2100 PORTVERSION= 0.2.2 +PORTREVISON= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/games/warzone2100/files/patch-src_loadsave.c b/games/warzone2100/files/patch-src_loadsave.c new file mode 100644 index 000000000000..0c5689603604 --- /dev/null +++ b/games/warzone2100/files/patch-src_loadsave.c @@ -0,0 +1,22 @@ +--- src/loadsave.c.orig Wed Jul 27 13:33:56 2005 ++++ src/loadsave.c Thu Sep 22 15:40:54 2005 +@@ -341,7 +341,8 @@ + } + } + } +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + bLoadSaveUp = TRUE; +@@ -444,7 +445,8 @@ + DeleteFile(entry->d_name); + } + +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + diff --git a/games/warzone2100/files/warzone.in b/games/warzone2100/files/warzone.in index c8dd49cba4bb..b314ea511809 100644 --- a/games/warzone2100/files/warzone.in +++ b/games/warzone2100/files/warzone.in @@ -4,4 +4,4 @@ cd %%DATADIR%% || exit 1 -exec %%PREFIX%%/libexec/warzone +exec %%PREFIX%%/libexec/warzone "$@" |