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

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Mar 2010 15:06:35 -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 bonefish):

 Replying to [comment:8 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.

 Yeah, we should call it GetPermissions(). Oh wait, that already exists.
 ;-)

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

Other related posts: