* io/openat.c (__openat_2): Also pass fd to __openat.
authorUlrich Drepper <drepper@redhat.com>
Sun, 11 May 2008 09:32:43 +0000 (09:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 11 May 2008 09:32:43 +0000 (09:32 +0000)
* io/openat64.c (__openat64_2): Also pass fd to __openat64.
Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.

ChangeLog
io/openat.c
io/openat64.c

index ea15e3b..66798ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
 
+       * io/openat.c (__openat_2): Also pass fd to __openat.
+       * io/openat64.c (__openat64_2): Also pass fd to __openat64.
+       Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
+
        * string/tester.c (test_memcmp): Add a few more tests.
        Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
 
index 98fa1a1..a6bd620 100644 (file)
@@ -79,7 +79,7 @@ __openat_2 (fd, file, oflag)
   if (oflag & O_CREAT)
     __fortify_fail ("invalid openat call: O_CREAT without mode");
 
-  return __openat (file, oflag);
+  return __openat (fd, file, oflag);
 }
 stub_warning (__openat_2)
 
index 2d63490..1532afe 100644 (file)
@@ -79,7 +79,7 @@ __openat64_2 (fd, file, oflag)
   if (oflag & O_CREAT)
     __fortify_fail ("invalid openat64 call: O_CREAT without mode");
 
-  return __openat64 (file, oflag);
+  return __openat64 (fd, file, oflag);
 }
 stub_warning (__openat_2)