[Bug 21292] system call "open" doesn't reject trailing slash in filenames