[LTP] [PATCH] acct01: add EFAULT errno check.

Petr Vorel pvorel@suse.cz
Mon Jul 8 10:54:30 CEST 2024


Hi Lu,

> Hi Petr, Cyril.
> Really thanks for the advises. Each of them makes me learned.

You're welcome. Also looking at XHTML entity '>' and ' ' in your reply below,
it would be great if you could set your email client (MUA) which you use for LTP
mailing list to use plain text (not XHTML).

Here are some tips:
https://www.kernel.org/doc/html/latest/process/email-clients.html

Kind regards,
Petr

> Sorry for the patches not so good I've sent, I'm trying to make it better in the future.
> I will make warnings clearnup patches after this one merged.


> Best reguards.
> Lu Fei
>  
> ------------------ Original ------------------
> From:  "Petr Vorel"<pvorel@suse.cz>;
> Date:  Mon, Jul 8, 2024 04:23 AM
> To:  "ltp"<ltp@lists.linux.it>; "lufei"<lufei@uniontech.com>; 
> Cc:  "Cyril Hrubis"<chrubis@suse.cz>; 
> Subject:  Re: [LTP] [PATCH] acct01: add EFAULT errno check.

>  

> Hi 
> > Add EFAULT errno check in acct01 testcase.

> > Signed-off-by: lufei <lufei@uniontech.com>

> I guess you don't mind if I change this to following before merge:
> Signed-off-by: Lu Fei <lufei@uniontech.com>

> > ---
> >  testcases/kernel/syscalls/acct/acct01.c | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)

> > diff --git a/testcases/kernel/syscalls/acct/acct01.c b/testcases/kernel/syscalls/acct/acct01.c
> > index 1b53a32f2..ed1817bc5 100644
> > --- a/testcases/kernel/syscalls/acct/acct01.c
> > +++ b/testcases/kernel/syscalls/acct/acct01.c
> > @@ -33,6 +33,7 @@
> >  #define FILE_TMPFILE		"./tmpfile"
> >  #define FILE_ELOOP		"test_file_eloop1"
> >  #define FILE_EROFS		"ro_mntpoint/file"
> > +#define FILE_EFAULT		"/tmp/invalid/file/name"
....


More information about the ltp mailing list