[LTP] [PATCH 1/1] tst_test.sh: Remove possible double/trailing slashes from TMPDIR

Li Wang liwang@redhat.com
Thu Apr 13 10:20:44 CEST 2023


On Thu, Apr 13, 2023 at 4:02 PM Petr Vorel <pvorel@suse.cz> wrote:

> > On Wed, Apr 12, 2023 at 3:40 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> > > NFS tests have problem when TMPDIR path contains double slashes,
> > > because they grep exportfs output which is normalized.
>
>
> > I'm ok to remove redundant slashes, I just wondering where
> > is the second slash comes from?
> > Is that added by accident when env variable definition?
>
> Yes, that's the last slash in TMPDIR=/var/tmp/.
> TMPDIR=/var/tmp would work.
>

Ok, I agree with the secondary treatment inside lib (includes C API),
as we can't grantee the all users to remember this trivial.

Reviewed-by: Li Wang <liwang@redhat.com>


-- 
Regards,
Li Wang


More information about the ltp mailing list