Same symptom and solution proposed in bug report 3173713.
I was a bit to hasty. If ::open is used when -1 not 0 (zero) should be returned. Thus, invalid_file_handle_value should return -1.
From the man pages:
"open() and creat() return the new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately)."
Log in to post a comment.