Skip to content

Conversation

@dpino
Copy link

@dpino dpino commented Oct 14, 2018

When running sudo make install an Error is returned if /sbin/hping/ already exists:

cp -f hping3 /usr/sbin/
chmod 755 /usr/sbin/hping3
ln -s /usr/sbin/hping3 /usr/sbin/hping
ln: failed to create symbolic link '/usr/sbin/hping': File exists
Makefile:75: recipe for target 'install' failed
make: *** [install] Error 1

The error message can be taken as an unsuccessful install. The patch redirects stderr to /dev/null to hide this error.

If for some reason the link already existed an error message would be
printed out, which can be mistaken as an unsuccessful installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant