mirror of git://sourceware.org/git/glibc.git
2001-06-16 Roland McGrath <roland@frob.com>
* hurd/hurdexec.c (_hurd_exec): Be robust for DTABLESIZE==0.
This commit is contained in:
parent
5b60c9fcea
commit
21bc421fb0
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1991,92,93,94,95,96,97,99 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,92,93,94,95,96,97,99,2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -187,7 +187,7 @@ _hurd_exec (task_t task, file_t file,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prune trailing null ports from the descriptor table. */
|
/* Prune trailing null ports from the descriptor table. */
|
||||||
while (dtable[dtablesize - 1] == MACH_PORT_NULL)
|
while (dtablesize > 0 && dtable[dtablesize - 1] == MACH_PORT_NULL)
|
||||||
--dtablesize;
|
--dtablesize;
|
||||||
|
|
||||||
/* The information is all set up now. Try to exec the file. */
|
/* The information is all set up now. Try to exec the file. */
|
||||||
|
|
Loading…
Reference in New Issue