diff options
| author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-01-21 00:26:21 +0100 |
|---|---|---|
| committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-01-21 00:26:21 +0100 |
| commit | a107ea39ab787ef239ee24dc2d2a24d33651d403 (patch) | |
| tree | ed780c79177cb627aa4a58a33bf3706e3220435c /debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch | |
| parent | 5453c9bbb276e835e7adf1640f33cad59eced38f (diff) | |
drop old patch series
Diffstat (limited to 'debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch')
| -rw-r--r-- | debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch b/debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch deleted file mode 100644 index f796c92f..00000000 --- a/debian/patches/0005-auth-remove-implicit-assumption-about-the-bootstrap-.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 0096ede3e8b25335816b2b31474b153a2f6c587d Mon Sep 17 00:00:00 2001 -From: Justus Winter <4winter@informatik.uni-hamburg.de> -Date: Wed, 7 Jan 2015 16:00:06 +0100 -Subject: [PATCH hurd 05/11] auth: remove implicit assumption about the - bootstrap process - -The current code assumes that it can speak the startup protocol over -its bootstrap port. - -* auth/auth.c (main): Generalize by trying to use `/servers/startup' -before falling back to the bootstrap port. ---- - auth/auth.c | 15 ++++++++++++++- - 1 file changed, 14 insertions(+), 1 deletion(-) - -diff --git a/auth/auth.c b/auth/auth.c -index a7a188a..d5ef587 100644 ---- a/auth/auth.c -+++ b/auth/auth.c -@@ -25,6 +25,7 @@ - #include <pthread.h> - #include <hurd.h> - #include <hurd/startup.h> -+#include <hurd/paths.h> - #include <hurd/ports.h> - #include <hurd/ihash.h> - #include <idvec.h> -@@ -482,6 +483,7 @@ main (int argc, char **argv) - { - error_t err; - mach_port_t boot; -+ mach_port_t startup; - process_t proc; - mach_port_t hostpriv, masterdev; - struct authhandle *firstauth; -@@ -518,10 +520,21 @@ main (int argc, char **argv) - _hurd_port_set (&_hurd_ports[INIT_PORT_PROC], proc); - _hurd_proc_init (argv, NULL, 0); - -+ startup = file_name_lookup (_SERVERS_STARTUP, 0, 0); -+ if (! MACH_PORT_VALID (startup)) -+ { -+ error (0, errno, "%s", _SERVERS_STARTUP); -+ /* Fall back to using the bootstrap port as before. */ -+ startup = boot; -+ } -+ - /* Init knows intimately that we will be ready for messages - as soon as this returns. */ -- startup_essential_task (boot, mach_task_self (), MACH_PORT_NULL, "auth", -+ startup_essential_task (startup, mach_task_self (), MACH_PORT_NULL, "auth", - hostpriv); -+ -+ if (startup != boot) -+ mach_port_deallocate (mach_task_self (), startup); - mach_port_deallocate (mach_task_self (), boot); - mach_port_deallocate (mach_task_self (), hostpriv); - --- -2.1.4 - |
