Skip to content

Commit

Permalink
* io/openat.c (__openat_2): Also pass fd to __openat.
Browse files Browse the repository at this point in the history
	* io/openat64.c (__openat64_2): Also pass fd to __openat64.
	Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
  • Loading branch information
Ulrich Drepper committed May 11, 2008
1 parent 3490f01 commit 3d7eeeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>.

Expand Down
2 changes: 1 addition & 1 deletion io/openat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion io/openat64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3d7eeeb

Please sign in to comment.