Date: Fri, 21 Jan 2022 15:05:59 GMT From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c61a5657a0bb - main - sysutils/bareos-server: Fix build Message-ID: <202201211505.20LF5xBJ015640@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=c61a5657a0bb0a38489d5e3d2d5e8b9c86daec63 commit c61a5657a0bb0a38489d5e3d2d5e8b9c86daec63 Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2022-01-21 15:04:05 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2022-01-21 15:05:50 +0000 sysutils/bareos-server: Fix build PR: 261226 Reported by: Trond.Endrestol _at_ ximalas.info --- .../files/patch-core-src-dird_catreq.cc | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sysutils/bareos-server/files/patch-core-src-dird_catreq.cc b/sysutils/bareos-server/files/patch-core-src-dird_catreq.cc new file mode 100644 index 000000000000..e16e259a9ffa --- /dev/null +++ b/sysutils/bareos-server/files/patch-core-src-dird_catreq.cc @@ -0,0 +1,29 @@ +--- core/src/dird/catreq.cc 2022-01-21 09:00:16.883799000 -0500 ++++ core/src/dird/catreq.cc 2022-01-21 09:02:08.619060000 -0500 +@@ -656,7 +656,7 @@ + bool retval = false; + int32_t pktsiz; + size_t nbytes; +- ssize_t size = 0; ++// ssize_t size = 0; + int32_t message_length; /* message length */ + int spool_fd = -1; + POOLMEM* msg = GetPoolMemory(PM_MESSAGE); +@@ -680,7 +680,7 @@ + + while ((nbytes = read(spool_fd, (char*)&pktsiz, sizeof(int32_t))) + == sizeof(int32_t)) { +- size += sizeof(int32_t); ++ //size += sizeof(int32_t); + message_length = ntohl(pktsiz); + + if (message_length > 0) { +@@ -697,7 +697,7 @@ + goto bail_out; + } + msg[nbytes] = '\0'; +- size += nbytes; ++ //size += nbytes; + } + + if (!jcr->IsJobCanceled()) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201211505.20LF5xBJ015640>