[haiku-bugs] Re: [Haiku] #5521: StyledEdit does not check read-only status of a file prior to writing to it.

  • From: "ver" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Mar 2010 13:36:40 -0000

#5521: StyledEdit does not check read-only status of a file prior to writing to
it.
---------------------------------------+------------------------------------
 Reporter:  ver                        |       Owner:  korli    
     Type:  enhancement                |      Status:  new      
 Priority:  low                        |   Milestone:  R1       
Component:  Applications/StyledEdit    |     Version:  R1/alpha1
 Keywords:  stylededit save read-only  |   Blockedby:           
 Platform:  All                        |    Blocking:           
---------------------------------------+------------------------------------

Comment(by ver):

 Alright, I'm not sure which fstat you are referring to, but I apologise
 for the formatting. I copied majority of it from elsewhere (Pe as well as
 earlier in StyledEdit's source) so I assumed it was style-conforming.
 What would the best approach to fixing this be?  Is checking stat flags
 and producing a warning in the case of a missing writeable bit generally
 acceptable?

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

Other related posts: