summaryrefslogtreecommitdiff
path: root/alpine/hide-hostname.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-12 13:49:31 +0200
committerErich Eckner <git@eckner.net>2020-06-12 13:49:31 +0200
commitb74cc787a78b8699c7eba68c66b1e625ed372143 (patch)
tree86f3447a2af490fed1b20f0f749823756b43591f /alpine/hide-hostname.patch
parented037c4214d93d68a520c99d8e13f438037c6c01 (diff)
downloadarchlinuxewe.git.save-b74cc787a78b8699c7eba68c66b1e625ed372143.tar.xz
alpine: add hide-hostname.patch
Diffstat (limited to 'alpine/hide-hostname.patch')
-rw-r--r--alpine/hide-hostname.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/alpine/hide-hostname.patch b/alpine/hide-hostname.patch
new file mode 100644
index 00000000..00d306ec
--- /dev/null
+++ b/alpine/hide-hostname.patch
@@ -0,0 +1,24 @@
+diff --git a/pith/reply.c b/pith/reply.c
+index ab4e97c..d7bdc91 100644
+--- a/pith/reply.c
++++ b/pith/reply.c
+@@ -3369,13 +3369,17 @@ generate_message_id(void)
+
+ get_alpine_revision_number(revisionbuf, sizeof(revisionbuf));
+ if(F_ON(F_ROT13_MESSAGE_ID, ps_global)){
+- hostpart = rot13(ps_global->hostname);
++ hostpart = rot13(ps_global->userdomain
++ ? ps_global->userdomain
++ : ps_global->hostname);
+ alpine_name = rot13("alpine");
+ alpine_version = rot5n(ALPINE_VERSION);
+ system_os = rot13(SYSTYPE);
+ revision = rot5n(revisionbuf);
+ } else {
+- hostpart = cpystr(ps_global->hostname);
++ hostpart = cpystr(ps_global->userdomain
++ ? ps_global->userdomain
++ : ps_global->hostname);
+ alpine_name = cpystr("alpine");
+ alpine_version = cpystr(ALPINE_VERSION);
+ system_os = cpystr(SYSTYPE);