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

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Mar 2010 15:01:02 -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:                    |  
-------------------------------+--------------------------------------------

Comment(by axeld):

 There is a point for this for root users, though, since they can just
 write to write protected files. Normally, editors issue a warning for
 this, but this has to be specifically coded everywhere.

 A handy getter wouldn't be too bad, but that should probably be end up in
 BStatable, and should get a better fitting name.

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

Other related posts: