RPM, tests, pointlist indexing and nlookup-ing, lint fixes #4

Merged
zx merged 15 commits from zx into master 2025-04-21 10:27:16 +03:00
7 changed files with 21 additions and 8 deletions
Showing only changes of commit 5a036bb150 - Show all commits

View File

@ -68,7 +68,7 @@ jobs:
- name: Installing archlinux package
run: |
ls -la
pacman --noconfirm -v -U bforce-r*.pkg.tar.zst
pacman --noconfirm -v -U bforce-*.pkg.tar.zst
cd ${{ github.workspace }}/tests
echo '-----------------------------------------'
ls -la

View File

@ -6,7 +6,7 @@ Type=forking
PIDFile=/tmp/bforce.pid
User=fido
Group=fido
ExecStart=/usr/bin/bforce -d -C /opt/fidonms/etc/bforce.conf
ExecStart=/usr/bin/bforce -d -C /etc/bforce/bforce.conf
ExecStop=/usr/bin/bforce -q
[Install]

View File

@ -9,5 +9,5 @@ service binkp
wait = no
user = fido
server = /usr/bin/bforce
server_args = -C /opt/fidonms/etc/bforce.conf -i binkp
server_args = -C /etc/bforce/bforce.conf -i binkp
}

View File

@ -9,5 +9,5 @@ service ifc
wait = no
user = fido
server = /usr/bin/bforce
server_args = -C /opt/fidonms/etc/bforce.conf -i auto
}
server_args = -C /etc/bforce/bforce.conf -i auto
}

View File

@ -1780,7 +1780,14 @@ static int expr_check_mailer(const char *str)
static int expr_check_addr(const char *str)
{
s_faddr addr;
s_faddr addr = {
.inetform = false,
.zone = 0,
.net = 0,
.node = 0,
.point = 0,
.domain = '\0' };
#ifdef DEBUG
char abuf1[BF_MAXADDRSTR+1];
char abuf2[BF_MAXADDRSTR+1];

View File

@ -360,7 +360,13 @@ static int expr_check_mailer(const char *str)
static int expr_check_addr(const char *str)
{
s_faddr addr = { 0, 0, 0, 0, 0, '\0' };
s_faddr addr = {
.inetform = false,
.zone = 0,
.net = 0,
.node = 0,
.point = 0,
.domain = '\0' };
#ifdef DEBUG
char abuf1[BF_MAXADDRSTR+1];

View File

@ -155,7 +155,7 @@ int exec_redirect_descriptor(int desc, const char *fname, int flags)
close(fd);
return -1;
}
//cppcheck-suppress resourceLeak
return 0;
}