Replies: 4 comments
-
The API I used is in POSIX, but it seems *BSD doesn't support that part of POSIX. From a little research, looks like they have an equivalent called 'priv' and 'ucred'. Unfortunately I have zero programming experience with any of the BSD distributions. We'll need to find someone who does to help (and test) a BSD-specific implementation. |
Beta Was this translation helpful? Give feedback.
-
Yes this is very Linux specific... I am patching this out to run on FreeBSD, but I'll see if I can find a solution. |
Beta Was this translation helpful? Give feedback.
-
I plan to remove this functionality, as nzbget doesn't need to run with elevated privileges and thus shouldn't be run with elevated privileges. Eventually I'll replace it with a check to see if it's running as root, and complain/exit if it is. I'll also remove the functionality to 'switch user'. If you're going to make changes, that would be what I'd recommend, rather than doing something BSD-specific. Hate to repeat myself, but I have no experience working with BSD APIs, pull requests are gratefully received. Open source is supposed to be a community effort. |
Beta Was this translation helpful? Give feedback.
-
The issue is no longer relevant. |
Beta Was this translation helpful? Give feedback.
-
492bf67 breaks building on OpenBSD as it has no libcap, nor has it a port for it. I'm not sure about the other BSD's, but as far as I can tell FreeBSD and OSX will experience the same issue.
It seems as if Libcap{,-ng} is Linux specific.
Beta Was this translation helpful? Give feedback.
All reactions