diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2012-05-10 12:43:01 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-05-10 15:57:22 -0700 |
commit | 6f080c2fcffac1bb8626b8d143dba57a37abb071 (patch) | |
tree | 23aa88a0084d4e5e89ff441d8250708173dc59df /sysdeps/mach/hurd/dl-sysdep.c | |
parent | bcfe3a546e831ff3e43a8782f65a95fab7bb864d (diff) | |
download | glibc-6f080c2fcffac1bb8626b8d143dba57a37abb071.tar.gz glibc-6f080c2fcffac1bb8626b8d143dba57a37abb071.tar.xz glibc-6f080c2fcffac1bb8626b8d143dba57a37abb071.zip |
Hurd: O_CLOEXEC in rtld
Diffstat (limited to 'sysdeps/mach/hurd/dl-sysdep.c')
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index d928cd2478..26a212ef98 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -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]; |