about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-04-23 03:48:54 +0000
committerRoland McGrath <roland@gnu.org>2002-04-23 03:48:54 +0000
commita3c2e4038e2044be0ca3bfa27e068e42d8352ded (patch)
treed556ff90b66564f97090e082403c6925cbd4a978 /sysdeps
parentf89829da367a9fa87c63057b0a29324977733f6a (diff)
downloadglibc-a3c2e4038e2044be0ca3bfa27e068e42d8352ded.tar.gz
glibc-a3c2e4038e2044be0ca3bfa27e068e42d8352ded.tar.xz
glibc-a3c2e4038e2044be0ca3bfa27e068e42d8352ded.zip
2002-04-22 Roland McGrath <roland@frob.com>
	* sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
	failure from i386_io_perm_* RPCs to ENOSYS.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/i386/ioperm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/i386/ioperm.c b/sysdeps/mach/hurd/i386/ioperm.c
index 4a3cd77164..39139bc565 100644
--- a/sysdeps/mach/hurd/i386/ioperm.c
+++ b/sysdeps/mach/hurd/i386/ioperm.c
@@ -44,6 +44,9 @@ ioperm (unsigned long int from, unsigned long int num, int turn_on)
 	  err = __i386_io_perm_modify (__mach_task_self (), perm, turn_on);
 	  __mach_port_deallocate (__mach_task_self (), perm);
 	}
+
+      if (err == MIG_BAD_ID)	/* Old kernels don't have these RPCs.  */
+	err = ENOSYS;
     }
 
   return err ? __hurd_fail (err) : 0;