[haiku-bugs] Re: [Haiku] #5520: IsWritable / IsReadable methods do not currently check Write/Read mode bits.

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Mar 2010 13:17:45 -0000

#5520: IsWritable / IsReadable methods do not currently check Write/Read mode
bits.
-------------------------------+--------------------------------------------
  Reporter:  ver               |       Owner:  axeld                      
      Type:  enhancement       |      Status:  closed                     
  Priority:  normal            |   Milestone:  R1                         
 Component:  Kits/Storage Kit  |     Version:  R1/Development             
Resolution:  invalid           |    Keywords:  IsWritable IsReadable BFile
 Blockedby:                    |    Platform:  All                        
  Blocking:  5521              |  
-------------------------------+--------------------------------------------

Comment(by anevilyak):

 Replying to [comment:4 ver]:
 > Why would you set a file mode to r-x if you never check the w?  What is
 the point of IsWritable() otherwise?  To tell me I passed THIS flag when I
 called my BFile constructor? :/

 How does a different function call in another place in the program that
 may have to deal with many different BFile pointers know which flags a
 given one was opened with? It doesn't, hence those accessors.

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

Other related posts: