From: Ulrich Drepper Date: Sun, 11 May 2008 09:32:43 +0000 (+0000) Subject: * io/openat.c (__openat_2): Also pass fd to __openat. X-Git-Tag: cvs/fedora-glibc-20080515T0735~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d7eeebe4990e08cd0c9fb2a9cc1e07c27ee3b4c;p=thirdparty%2Fglibc.git * 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 . --- diff --git a/ChangeLog b/ChangeLog index ea15e3b7833..66798adee99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-05-11 Ulrich Drepper + * 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 . + * string/tester.c (test_memcmp): Add a few more tests. Patch by Mats Erik Andersson . diff --git a/io/openat.c b/io/openat.c index 98fa1a1d64c..a6bd62094bd 100644 --- a/io/openat.c +++ b/io/openat.c @@ -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) diff --git a/io/openat64.c b/io/openat64.c index 2d63490c65e..1532afeea68 100644 --- a/io/openat64.c +++ b/io/openat64.c @@ -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)