From 4cd83fb34670f44ecf0f186e0fb2b28c57215bbb Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 15 Nov 2020 15:08:59 -0500 Subject: [PATCH] games/gzdoom: Add missing patch. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/gzdoom/fix_zipdir.diff | 11 +++++++++++ games/gzdoom/gzdoom.SlackBuild | 1 + 2 files changed, 12 insertions(+) create mode 100644 games/gzdoom/fix_zipdir.diff diff --git a/games/gzdoom/fix_zipdir.diff b/games/gzdoom/fix_zipdir.diff new file mode 100644 index 0000000000..88fb016966 --- /dev/null +++ b/games/gzdoom/fix_zipdir.diff @@ -0,0 +1,11 @@ +--- a/tools/zipdir/zipdir.c ++++ b/tools/zipdir/zipdir.c +@@ -781,6 +781,8 @@ + if (central_dir == NULL) + { + fprintf(stderr, "Could not read central directory from %s. (Is it a zipfile?)\n", zipname); ++ fclose(ozip); ++ ozip = NULL; + update = 0; + } + } diff --git a/games/gzdoom/gzdoom.SlackBuild b/games/gzdoom/gzdoom.SlackBuild index c4e6691aca..7f61d2a621 100644 --- a/games/gzdoom/gzdoom.SlackBuild +++ b/games/gzdoom/gzdoom.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20201115 bkw: Add missing fix_zipdir.diff. Dammit. # 20201107 bkw: Updated for 4.5.0. # 20201027 bkw: # - Updated for 4.4.2.