I'm currently cooking up a few test cases for PR 18982, along
with a patch. For a test case, I need to generate files which
the user can't read / write.
What is the best way to go about this? Currently, I use
call system("touch foo.bar; chmod u-w foo.bar"). Is there
anything more elegant or portable?
Thomas