sysutils/bacula15-server: Apply upstream bpipe patch

* https://sourceforge.net/p/bacula/mailman/message/59121596/
* 453dc8ef9e

PR:		284250
This commit is contained in:
Dan Langille 2025-01-23 12:35:32 +00:00
parent 30af11cd13
commit 005727cf88
2 changed files with 14 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= bacula PORTNAME= bacula
DISTVERSION= 15.0.2 DISTVERSION= 15.0.2
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES?= sysutils CATEGORIES?= sysutils
MASTER_SITES= SF/bacula/bacula/${DISTVERSION} MASTER_SITES= SF/bacula/bacula/${DISTVERSION}
PKGNAMEPREFIX?= # PKGNAMEPREFIX?= #

View file

@ -0,0 +1,13 @@
--- src/plugins/fd/bpipe-fd.c.orig 2024-03-22 09:48:41 UTC
+++ src/plugins/fd/bpipe-fd.c
@@ -202,7 +202,9 @@ static bRC freePlugin(bpContext *ctx)
if (!p_ctx) {
return bRC_Error;
}
- bfree_and_null(p_ctx->cmd);
+ if (p_ctx->cmd) {
+ free(p_ctx->cmd); /* free any allocated command string */
+ }
free_and_null_pool_memory(p_ctx->restore_obj_buf);
if (p_ctx->rop_writer) {
restoreobj *rop;