mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
sysutils/bareos-server: Fix build
PR: 261226 Reported by: Trond.Endrestol _at_ ximalas.info
This commit is contained in:
parent
ead2e6c0ad
commit
c61a5657a0
29
sysutils/bareos-server/files/patch-core-src-dird_catreq.cc
Normal file
29
sysutils/bareos-server/files/patch-core-src-dird_catreq.cc
Normal file
@ -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()) {
|
Loading…
Reference in New Issue
Block a user