jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

mv: not report error while hardremove() non-first file #273

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
; mkdir /tmp/rename
; cd /tmp/rename
; mkdir a
; mkdir b
; mkdir c
; mkdir union
; echo 1 > a/file
; echo 2 > b/file
; echo 3 > c/file
; echo X > c/file.new
; chmod -w b
; bind -a a union
; bind -a b union
; bind -a c union
; mv union/file.new union/file
; cat union/file
2
; cat a/file
cat: cannot open a/file: 'a/file' does not exist
; cat b/file
2
; cat c/file
X

What is the expected output? What do you see instead?
Expect to see:
mv: can't remove union/file: permission denied

Which operating system are you using?

Please provide any additional information below.

Original issue reported on code.google.com by powerman...@gmail.com on 30 Aug 2011 at 7:48

GoogleCodeExporter commented 9 years ago

Original comment by powerman...@gmail.com on 31 Aug 2011 at 5:30

Attachments: