1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-02 21:06:41 +03:00

Hurd: O_CLOEXEC in rtld

This commit is contained in:
Thomas Schwinge
2012-05-10 12:43:01 -07:00
committed by Roland McGrath
parent bcfe3a546e
commit 6f080c2fcf
5 changed files with 17 additions and 10 deletions

View File

@ -1,6 +1,5 @@
/* Operating system support for run-time dynamic linker. Hurd version.
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2010
Free Software Foundation, Inc.
Copyright (C) 1995-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -315,7 +314,7 @@ open_file (const char *file_name, int flags,
return MACH_PORT_NULL;
}
assert (!(flags & ~O_READ));
assert (!(flags & ~(O_READ | O_CLOEXEC)));
startdir = _dl_hurd_data->portarray[file_name[0] == '/' ?
INIT_PORT_CRDIR : INIT_PORT_CWDIR];