[RTEMS Project] #3048: RSB cannot overwrite read-only files

RTEMS trac trac at rtems.org
Wed Jun 14 06:36:39 UTC 2017


#3048: RSB cannot overwrite read-only files
-----------------------------+--------------------------
 Reporter:  Sebastian Huber  |       Owner:  Chris Johns
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  Indefinite
Component:  RSB              |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+--------------------------

Comment (by Chris Johns):

 Why is the packaging being built installing read-only files? Is this an
 upstream bug?

 Consider:
 {{{
 $ mkdir /tmp/xya
 $ mkdir /tmp/xya/abz
 $ touch /tmp/xya/abz/129
 $ ls -las /tmp/xya/abz/129
 0 -rw-r--r--  1 chris  wheel  0 Jun 14 16:30 /tmp/xya/abz/129
 $ chmod 444 /tmp/xya/abz/129
 $ ls -las /tmp/xya/abz/129
 0 -r--r--r--  1 chris  wheel  0 Jun 14 16:30 /tmp/xya/abz/129
 $ rm -r /tmp/xya
 override r--r--r--  chris/wheel for /tmp/xya/abz/129?
 }}}

 Removing read-only files is not "expected" behaviour.
 I suppose with the RSB and a package and package we could so this.

 Note, the `path.py` code from the 4.11 patch I just posted needs to be
 ported to `master`. It has a better `removeall`. I plan to do this once
 merged on to the 4.11 branch.

--
Ticket URL: <http://devel.rtems.org/ticket/3048#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list