]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
hooks: Escape interface names and use printf 610/head
authorJoan Lledó <jlledom@member.fsf.org>
Tue, 19 May 2026 14:21:54 +0000 (15:21 +0100)
committerRoy Marples <roy@marples.name>
Tue, 19 May 2026 14:21:54 +0000 (15:21 +0100)
commit3836b16c4338ebd11cb4d34c1c2f2e5c00870642
tree9e187af6a6d6593d7bb72aa9fb3d087fc19784c4
parent0a523884dfadc8dac9ccd730d1178c090e69c1aa
hooks: Escape interface names and use printf

In the Hurd, interface names can include invalid characters like `/`.
So those must be escaped.
13 files changed:
hooks/01-test
hooks/20-resolv.conf
hooks/29-lookup-hostname
hooks/30-hostname.in
hooks/50-dhcpcd-compat
hooks/50-ntp.conf
hooks/50-yp.conf
hooks/50-ypbind.in
hooks/dhcpcd-run-hooks.in
src/dhcp-common.c
src/dhcp-common.h
src/dhcp.c
src/script.c