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

From: Florian Westphal <[email-masked]>
Date: Wed, 27 Nov 2019 23:05:25 +0100

Naresh Kamboju <[email-masked]> wrote:
> On Tue, 26 Nov 2019 at 21:26, Florian Westphal <[email-masked]> wrote:
> >
> > Naresh Kamboju <[email-masked]> 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.