Re: selftests:netfilter: nft_nat.sh: internal00-0 Error Could not open file \"-\" No such file or directory

From: Florian Westphal
Date: Wed Nov 27 2019 - 17:05:37 EST


Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:
> On Tue, 26 Nov 2019 at 21:26, Florian Westphal <fw@xxxxxxxxx> wrote:
> >
> > Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:
> > > Do you see the following error while running selftests netfilter
> > > nft_nat.sh test ?
> > > Are we missing any kernel config fragments ? We are merging configs
> > > from the directory.
> > >
> > > # selftests netfilter nft_nat.sh
> > > netfilter: nft_nat.sh_ #
> > > # Cannot create namespace file \"/var/run/netns/ns1\" File exists
> >
> > 'ns1' is not a good name.
> > What is the output of nft --version?
>
> nftables v0.7 (Scrooge McDuck)

Oh, that explains it. "-" only works
since 0.8.4 ...

I will submit another patch that uses /dev/stdin instead.