[haiku-bugs] Re: [Haiku] #5055: fdopendir closes file descriptor too early

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Mon, 30 Nov 2009 08:15:42 -0000

#5055: fdopendir closes file descriptor too early
--------------------------+-------------------------------------------------
 Reporter:  augiedoggie   |       Owner:  nobody        
     Type:  bug           |      Status:  new           
 Priority:  normal        |   Milestone:  R1            
Component:  System/POSIX  |     Version:  R1/Development
 Keywords:                |   Blockedby:                
 Platform:  All           |    Blocking:                
--------------------------+-------------------------------------------------

Comment(by axeld):

 Well, the main reason this is breaking is because the code itself is
 broken; ie. it does not adhere to the specs (besides not using closedir()
 to close the directory).

 However, if this is used this way in applications, and they do work on
 other platforms, I guess we should just follow their example.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5055#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: