Re: DIFF between /usr/sbin/nft -f and /usr/local/sbin/nft

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 06, 2018 at 12:09:07PM +0200, support@xxxxxxx wrote:
>
>
> 	hello,
>
> 	depending on which distribution one use
> 	the 'make install' will NOT overwrite
> 	a new compiled nft.
>
> 	following problem is in the shebangs
> 	that some scripts starting with 	
>
> 	#!/usr/local/sbin/nft -f
> 	others with
> 	#!/usr/sbin/nft -f
>
> 	diff /usr/sbin/nft   /usr/local/sbin/nft
> 	: Binary files /usr/sbin/nft and /usr/local/sbin/nft differ
>
> 	means one starting the new nft version
> 	others the old one.
>
> 	thats not good, folks !
>
> 	cheers
> 	karl

It's best to always build as a package for your distribution. This ensures that
an upgrade will remove old files.

If not building as a package, the defau;t is /usr/local. You can override this
by doing ./configure --prefix=/usr rather than plain ./configure.

Do one of the above, then replace /usr/local/sbin/nft with a symbolic link to
/usr/sbin/nft.

All scripts should start /usr/sbin/nft -f

Cheers ... Duncan.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux