[haiku-bugs] Re: [Haiku] #6750: chmod is broken for non-superuser

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Tue, 26 Oct 2010 18:55:04 -0000

#6750: chmod is broken for non-superuser
-------------------------------+---------------------------------
  Reporter:  grahamh           |        Owner:  axeld
      Type:  bug               |       Status:  new
  Priority:  normal            |    Milestone:  R1
 Component:  File Systems/BFS  |      Version:  R1/Development
Resolution:                    |     Keywords:  chmod, write_stat
Blocked By:                    |  Has a Patch:  0
  Platform:  All               |     Blocking:
-------------------------------+---------------------------------

Comment (by axeld):

 Your concerns about the coding style are definitely justified ;-)

 Anyway, thanks for looking into this. The way you changed bfs_write_stat()
 doesn't make any sense to me, though. Why should you have different rights
 depending on what you change? The way it's done now, you actually get a
 permission boost when doing ownership related changes.

 If those actually need different access rights, they should be separated
 from the other changes. I guess that would need some more investigations,
 though.

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

Other related posts: