diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-10-12 15:54:44 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-10-12 15:54:44 +0200 |
commit | 734c4425ebf3c83a051ea5991a1465809356af5c (patch) | |
tree | 1bf44e60d336e0d9c927b7344c9478cb8bb62d59 /debian/patches | |
parent | 224ca317e3cffb0619539ced2f4f0d8881a36148 (diff) |
add startup-avoid-broken-puts.patch
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/startup-avoid-broken-puts.patch | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series index 38867cd5..32d58955 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -56,3 +56,4 @@ mach-defpager-protected-payload.patch trans-crash-add-verbose.patch procfs-0007-procfs-provide-magic-retry-response-for-proc-self.patch +startup-avoid-broken-puts.patch diff --git a/debian/patches/startup-avoid-broken-puts.patch b/debian/patches/startup-avoid-broken-puts.patch new file mode 100644 index 00000000..76aae649 --- /dev/null +++ b/debian/patches/startup-avoid-broken-puts.patch @@ -0,0 +1,27 @@ +From f5321a63efad6e031952e1821c00965a42036730 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sun, 12 Oct 2014 15:51:09 +0200 +Subject: [PATCH hurd] startup: avoid broken puts + +--- + startup/startup.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/startup/startup.c b/startup/startup.c +index ff58270..e1f07a2 100644 +--- a/startup/startup.c ++++ b/startup/startup.c +@@ -1663,3 +1663,10 @@ S_fsys_forward (mach_port_t server, mach_port_t requestor, + { + return EOPNOTSUPP; + } ++ ++/* XXX: puts is broken, it doesn't print the newline. */ ++int ++puts (const char *s) ++{ ++ return printf ("%s%c", s, '\n') == 0? EOF: 1; ++} +-- +2.1.1 + |