[LTP] [PATCH 1/4] getcwd01.c: cleanup && convert to new API
Cyril Hrubis
chrubis@suse.cz
Tue Jan 17 12:38:19 CET 2017
Hi!
> add one test for ERANGE
I'm not sure if the newly added check for ERANGE is good idea, since
depending on ordering of the checks in kernel it may either reutrn
ERANGE, if size is checked first, or EFAULT if the buffer pointer is
checked first. It may start to fail for no good reason if the order of
kernel chesk ends up reversed.
Otherwise it looks fine.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list