~mamarley/openconnect/+git/gitlab-main:nobash

Last commit made on 2023-05-22
Get this branch:
git clone -b nobash https://git.launchpad.net/~mamarley/openconnect/+git/gitlab-main

Branch merges

Branch information

Recent commits

7ba0941... by dwmw2

Don't use bash for symbols test

Might fix #614?
Signed-off-by: David Woodhouse <email address hidden>

a4f1a34... by dwmw2

Update translations from GNOME

Signed-off-by: David Woodhouse <email address hidden>

9a8e570... by Dimitri Papadopoulos Orfanos <email address hidden>

Merge branch 'Test_suite' into 'master'

Remove duplicate paragraph from docs

See merge request openconnect/openconnect!463

59f2e59... by dwmw2

Tag version 9.12

Signed-off-by: David Woodhouse <email address hidden>

3bc9d78... by dwmw2

Update translations from GNOME

Signed-off-by: David Woodhouse <email address hidden>

3f4f341... by dwmw2

Update changelog

Signed-off-by: David Woodhouse <email address hidden>

f6d2c8d... by dwmw2

os-tcp-mtu.c: Explicitly include <netinet/in.h> for sockaddr_in(6|)

This doesn't get pulled in automatically in FreeBSD.

Signed-off-by: David Woodhouse <email address hidden>

0b47190... by dwmw2

Use extended regular expressions in gensymbols.sed

Using 'sed -E', along with a few other tweaks, makes it work on FreeBSD.

Signed-off-by: David Woodhouse <email address hidden>

4ca0aa1... by dwmw2

Clean up ifreq_set_ifname() and use it from bsd_open_tun() too

Currently, if we set a name with --interface which is too long to fit in
ifr->ifr_name, it gets silently truncated with strncpy(). This in itself
is not immediately broken, although the FreeBSD build does complain:

tun.c:262:17: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 74 [-Wstringop-truncation]
  262 | strncpy(ifr.ifr_name, tun_name + 5, sizeof(ifr.ifr_name) - 1);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It's not *immediately* broken, and there are no string overflows; the NUL
termination is there anyway. But it *is* broken eventually, because we'll
spawn vpnc-script with the *originally* intended name, and it won't find
the device with that name.

So fix it up to check the length and then return an error if the requested
name is too long, and just use memcpy() to put the string into ifr_name,
which was pre-zeroed anyway.

Signed-off-by: David Woodhouse <email address hidden>

af717f3... by dwmw2

Always define 'environ' in POSIX systems

POSIX.1-2017 says we should explicitly declare 'extern char **environ'
for ourselves. FreeBSD does need it too, as well as Solaris.

Signed-off-by: David Woodhouse <email address hidden>