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

Bug#475188: using NetworkManager /etc/network/if-up.d/openssh-server does not reload



Package: openssh-server
Version: 1:4.7p1-5 and others
Severity: normal

using NetworkManager, the script /etc/network/if-up.d/openssh-server does not 
reload, because it is called with the variable ADDRFAM equal 
to "NetworkManager"
This is the actual code:

# OpenSSH only cares about inet and inet6. Get thee gone, strange people
# still using ipx.
if [ "$ADDRFAM" != inet ] && [ "$ADDRFAM" != inet6 ]; then
	exit 0
fi

I suggest comment those lines of code or change the condition like this:

# OpenSSH only cares about inet and inet6. Get thee gone, strange people
# still using ipx.
if [ "${ADDRFAM}" = "ipx" ]; then
	exit 0
fi

Thanks

Jordi Pujol



Reply to: