|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v2] lib/vfscore: stat() - Return EINVAL if pathname is NULL
Please skip this one and use the v3 instead.
Thanks,
Costin
On 8/22/19 1:15 PM, Costin Lupu wrote:
> From: Costin Lupu <costin.lup@xxxxxxxxx>
>
> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
> ---
> lib/vfscore/main.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
> index fff233f3..be055b78 100644
> --- a/lib/vfscore/main.c
> +++ b/lib/vfscore/main.c
> @@ -1141,6 +1141,10 @@ LFS64(__xstat);
>
> int stat(const char *pathname, struct stat *st)
> {
> + if (!pathname) {
> + errno = EINVAL;
> + return -1;
> + }
> return __xstat(1, pathname, st);
> }
>
>
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |