1 From c8587c717eedd4841c002b3751463a070c896f87 Mon Sep 17 00:00:00 2001
2 From: Christian Hesse <mail@eworm.de>
3 Date: Thu, 4 Aug 2022 12:15:46 +0200
4 Subject: [PATCH 1/1] [!99] replace `hostname` with `uname -n`
6 The former belongs to package `inetutils`, which has some security
7 implications, so let's use the latter.
9 client/scripts/linux | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/client/scripts/linux b/client/scripts/linux
13 index c4e51f6d..49eff40a 100755
14 --- a/client/scripts/linux
15 +++ b/client/scripts/linux
16 @@ -113,7 +113,7 @@ set_hostname() {
17 local current_hostname
19 if [ -n "$new_host_name" ]; then
20 - current_hostname=$(hostname)
21 + current_hostname=$(uname -n)
23 # current host name is empty, '(none)' or 'localhost' or differs from new one from DHCP
24 if [ -z "$current_hostname" ] ||