Such an extended open is a serious security problem in setuid programs, and has other disturbing implications too. I agree that it's a nifty hack, but I think that it needs more than just a few lines of code to decide whether it will have more serious repercussions.