A. Student wrote:
I was wondering why badcall expects EFAULT to be
returned when the
empty string is passed to rmdir (and other similar calls).
Technically, the memory address is valid, so wouldn't ENOENT make
more sense?
Because it's broken, and the test framework in badcall isn't powerful
enough to allow fixing it with a simple patch but rather needs a
complete rewrite.
So everyone please ignore its complaints about error returns on
empty-string tests.
:-|
--
- David A. Holland / dholland(a)eecs.harvard.edu