From: Sam Hopkins <sah@co...> - 2006-10-05 16:55:45
forfeit:~/vblade-13 # sed /^$/q NEWS
-*- change-log -*-
2006-10-05 Sam Hopkins <sah@...>
fix confcmd memcpy bug
correct scnt return value in read/write ata response
replace O_RDONLY fallback with explicit stat. root always wins.
I added a fallback in vblade-12 that opened the file O_RDONLY if the
O_RDWR open failed. I expected this to permit the file permissions to
be used to determine the writeability of the file. Turns out I was
wrong -- root always wins, no matter what the permissions are.
vblade-13 adds a stat call that explicitly checks the permissions to
provide this behaviour. If the file is opened O_RDONLY, subsequent
writes fail and return proper ata errors to the client.