Systemd/src
Zbigniew Jędrzejewski-Szmek 0926f3489d resolved: make sure idn2 conversions are roundtrippable
While working on the gateway→_gateway conversion, I noticed that
libidn2 strips the leading underscore in some names.
https://gitlab.com/libidn/libidn2/issues/30 was resolved in
05d753ea69,
which disabled "STD3 ASCII rules" by default, i.e. disabled stripping
of underscores. So the situation is that with previously released libidn2
versions we would get incorrect behaviour, and once new libidn2 is released,
we should be OK.

Let's implement a simple test which checks that the name survives the
roundtrip, and if it doesn't, skip IDN resolution. Under old libidn2 this will
fail in more cases, and under new libidn2 in fewer, but should be the right
thing to do also under new libidn2.
2017-07-21 08:00:23 -04:00
..
ac-power build-sys: drop automake support 2017-07-18 10:04:44 -04:00
activate tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
analyze build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
ask-password build-sys: drop automake support 2017-07-18 10:04:44 -04:00
backlight build-sys: drop automake support 2017-07-18 10:04:44 -04:00
basic tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
binfmt build-sys: drop automake support 2017-07-18 10:04:44 -04:00
boot build-sys: rename SD_BOOT_LOG_TPM to ENABLE_TPM 2017-07-18 10:05:06 -04:00
busctl busctl: monitor - ignore the final NameLost message 2017-05-25 17:37:50 +02:00
cgls build-sys: drop automake support 2017-07-18 10:04:44 -04:00
cgroups-agent build-sys: drop automake support 2017-07-18 10:04:44 -04:00
cgtop build-sys: drop automake support 2017-07-18 10:04:44 -04:00
core core: fix typo (#6417) 2017-07-21 10:36:39 +02:00
coredump tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
cryptsetup tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
debug-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
delta build-sys: drop automake support 2017-07-18 10:04:44 -04:00
detect-virt build-sys: drop automake support 2017-07-18 10:04:44 -04:00
dissect build-sys: drop automake support 2017-07-18 10:04:44 -04:00
environment-d-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
escape build-sys: drop automake support 2017-07-18 10:04:44 -04:00
firstboot build-sys: drop automake support 2017-07-18 10:04:44 -04:00
fsck build-sys: drop automake support 2017-07-18 10:04:44 -04:00
fstab-generator tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
getty-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
gpt-auto-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
hibernate-resume build-sys: drop automake support 2017-07-18 10:04:44 -04:00
hostname build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
hwdb build-sys: drop automake support 2017-07-18 10:04:44 -04:00
import build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
initctl tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
journal tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
journal-remote tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
kernel-install build-sys: drop automake support 2017-07-18 10:04:44 -04:00
libsystemd tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
libsystemd-network tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
libudev build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
locale tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
login tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
machine tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
machine-id-setup build-sys: drop automake support 2017-07-18 10:04:44 -04:00
modules-load build-sys: drop automake support 2017-07-18 10:04:44 -04:00
mount build-sys: drop automake support 2017-07-18 10:04:44 -04:00
network tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
notify build-sys: drop automake support 2017-07-18 10:04:44 -04:00
nspawn nspawn: downgrade warning when we get sd_notify() message from unexpected process (#6416) 2017-07-20 14:46:58 -04:00
nss-myhostname build-sys: drop automake support 2017-07-18 10:04:44 -04:00
nss-mymachines build-sys: drop automake support 2017-07-18 10:04:44 -04:00
nss-resolve build-sys: drop automake support 2017-07-18 10:04:44 -04:00
nss-systemd build-sys: drop automake support 2017-07-18 10:04:44 -04:00
path build-sys: drop automake support 2017-07-18 10:04:44 -04:00
quotacheck build-sys: drop automake support 2017-07-18 10:04:44 -04:00
random-seed build-sys: drop automake support 2017-07-18 10:04:44 -04:00
rc-local-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
remount-fs build-sys: drop automake support 2017-07-18 10:04:44 -04:00
reply-password build-sys: drop automake support 2017-07-18 10:04:44 -04:00
resolve tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
rfkill build-sys: drop automake support 2017-07-18 10:04:44 -04:00
run tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
shared resolved: make sure idn2 conversions are roundtrippable 2017-07-21 08:00:23 -04:00
sleep build-sys: drop automake support 2017-07-18 10:04:44 -04:00
socket-proxy build-sys: drop automake support 2017-07-18 10:04:44 -04:00
stdio-bridge tree-wide: when %m is used in log_*, always specify errno explicitly 2017-05-19 14:24:03 -04:00
sulogin-shell build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
sysctl build-sys: drop automake support 2017-07-18 10:04:44 -04:00
system-update-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
systemctl build-sys: drop automake support 2017-07-18 10:04:44 -04:00
systemd build-sys: drop automake support 2017-07-18 10:04:44 -04:00
sysusers build-sys: drop automake support 2017-07-18 10:04:44 -04:00
sysv-generator build-sys: drop automake support 2017-07-18 10:04:44 -04:00
test resolved: make sure idn2 conversions are roundtrippable 2017-07-21 08:00:23 -04:00
timedate build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
timesync tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
tmpfiles build-sys: drop automake support 2017-07-18 10:04:44 -04:00
tty-ask-password-agent build-sys: drop automake support 2017-07-18 10:04:44 -04:00
udev tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
update-done build-sys: drop automake support 2017-07-18 10:04:44 -04:00
update-utmp tree-wide: make use of getpid_cached() wherever we can 2017-07-20 20:27:24 +02:00
user-sessions build-sys: drop automake support 2017-07-18 10:04:44 -04:00
vconsole build-sys: drop gitignore patterns for in-tree builds 2017-07-18 10:05:06 -04:00
veritysetup build-sys: drop automake support 2017-07-18 10:04:44 -04:00
volatile-root build-sys: drop automake support 2017-07-18 10:04:44 -04:00