Skip to content
Snippets Groups Projects
Commit 7b46736f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use whereis to find setcap install location and cut to trim the output

<Dan_C> DigitalMan: minor install issue noted today - during a fresh (Linux) install on a test box, the build failed because it was unable to execute the "sudo setcap ..." command.  This was on Slackware 15.0, where the setcap executable is located in /sbin , and that directory is not in the $PATH of a normal user, or even when a normal user uses the 'sudo' command.
parent 1ffe08c8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2887 passed
......@@ -133,7 +133,7 @@ endif
ifeq ($(os),linux)
.PHONY: setcap
setcap: all
sudo setcap 'cap_net_bind_service=+ep' $(EXEODIR)/sbbs
sudo $(whereis -b setcap | cut -d" " -f2) 'cap_net_bind_service=+ep' $(EXEODIR)/sbbs
endif
.PHONY: sexyz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment