summaryrefslogtreecommitdiff
path: root/core/coreutils/coreutils-8.30-uname-i486.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/coreutils/coreutils-8.30-uname-i486.patch')
-rw-r--r--core/coreutils/coreutils-8.30-uname-i486.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/coreutils/coreutils-8.30-uname-i486.patch b/core/coreutils/coreutils-8.30-uname-i486.patch
new file mode 100644
index 00000000..f7872693
--- /dev/null
+++ b/core/coreutils/coreutils-8.30-uname-i486.patch
@@ -0,0 +1,12 @@
+diff -rauN coreutils-8.30/src/uname.c coreutils-8.30-uname-patch-i486/src/uname.c
+--- coreutils-8.30/src/uname.c 2018-05-14 06:20:24.000000000 +0200
++++ coreutils-8.30-uname-patch-i486/src/uname.c 2019-01-28 21:12:09.151041534 +0100
+@@ -285,6 +285,8 @@
+
+ if (uname (&name) == -1)
+ die (EXIT_FAILURE, errno, _("cannot get system name"));
++
++ strcpy(name.machine, "i486");
+
+ if (toprint & PRINT_KERNEL_NAME)
+ print_element (name.sysname);