From a93be27308a6b02b4f76b7d61a64bd50b323a947 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 11 Mar 2013 11:30:11 +0100 Subject: open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC: Confirm issue. --- ...hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn | 43 +++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) (limited to 'open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn') diff --git a/open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn b/open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn index b1eaf9a5..c38d029e 100644 --- a/open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn +++ b/open_issues/hurd_file_name_lookup_retry_FS_RETRY_MAGIC.mdwn @@ -1,4 +1,5 @@ -[[!meta copyright="Copyright © 2009, 2010 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2009, 2010, 2013 Free Software Foundation, +Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -8,14 +9,38 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU Free Documentation License|/fdl]]."]]"""]] -IRC, #hurd, 2009-08-25 +[[!tag open_issue_glibc open_issue_hurd]] - also I fixed (what I think is) a bug in hurd_file_name_lookup_retry when opening FDs with FS_RETRY_MAGIC - it didn't actually reopen the FD, rather it just (effectively) duped it - cfhammar: That's great! I think I had some problems because of not being able to truly reopen a port to a file. - cfhammar: what is the difference, and why do you consider it a bug?... - antrik: for one thing you can't change open modes, and it doesn't reset the file cursor + +# IRC, freenode, #hurd, 2009-08-25 + + also I fixed (what I think is) a bug in + hurd_file_name_lookup_retry when opening FDs with FS_RETRY_MAGIC + it didn't actually reopen the FD, rather it just (effectively) + duped it + cfhammar: That's great! I think I had some problems because of + not being able to truly reopen a port to a file. + cfhammar: what is the difference, and why do you consider it a + bug?... + antrik: for one thing you can't change open modes, and it + doesn't reset the file cursor (which I actually needed, though I could have done it manually) antrik: and also it isn't consistant with linux - you can trigger the bug from the shell: cat /dev/fd/3 3>> /tmp/foo - cfhammar: I can't say that I understand the test case... but I can at least confirm that it behaves differently on Hurd and on Linux :-) + you can trigger the bug from the shell: cat /dev/fd/3 3>> + /tmp/foo + cfhammar: I can't say that I understand the test case... but I can + at least confirm that it behaves differently on Hurd and on Linux :-) + + +## 2013-02-17 + +GNU/Linux: + + $ cat /dev/fd/3 3>> /tmp/foo + $ ls -l /tmp/foo + -rw-rw-r-- 1 thomas thomas 0 Feb 17 12:01 /tmp/foo + +GNU/Hurd: + + $ cat /dev/fd/3 3>> /tmp/foo + cat: /dev/fd/3: Bad file descriptor -- cgit v1.2.3