follow-up on c++ open() fix. fixes logic in open() with long argument list.