about summary refs log tree commit diff
path: root/sysdeps/unix/fdopendir.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-05-08 00:48:30 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-08 00:48:30 -0400
commit28377d1bf58625172a1734b92e835591d4d23a18 (patch)
tree4a05343e1493965e45971e6f3a7d5566da23596f /sysdeps/unix/fdopendir.c
parent66bdbaa4522f561d4ea90a77af243c004ecf642c (diff)
downloadglibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.gz
glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.xz
glibc-28377d1bf58625172a1734b92e835591d4d23a18.zip
Optimize fdopendir a bit.
Don't call fcntl(F_SETFD) unnecessarily.
Diffstat (limited to 'sysdeps/unix/fdopendir.c')
-rw-r--r--sysdeps/unix/fdopendir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/fdopendir.c b/sysdeps/unix/fdopendir.c
index 565ce1ed72..9c5969d9a3 100644
--- a/sysdeps/unix/fdopendir.c
+++ b/sysdeps/unix/fdopendir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006, 2011 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
@@ -47,6 +47,6 @@ __fdopendir (int fd)
       return NULL;
     }
 
-  return __alloc_dir (fd, false, &statbuf);
+  return __alloc_dir (fd, false, flags, &statbuf);
 }
 weak_alias (__fdopendir, fdopendir)