fix dirname to handle input of form "foo/" correctly
[musl] / src / thread / syscall_cp.c