nixpkgs/pkgs/applications/misc/nut/hardcode-paths.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
415 B
Diff
Raw Normal View History

--- a/common/common.c
+++ b/common/common.c
@@ -991,6 +991,11 @@ ssize_t select_write(const int fd, const void *buf, const size_t buflen, const t
* communications media and/or vendor protocol.
*/
static const char * search_paths[] = {
+ "@avahi@",
+ "@freeipmi@",
+ "@libusb@",
+ "@neon@",
+ "@libmodbus@",
/* Use the library path (and bitness) provided during ./configure first */
LIBDIR,
"/usr"LIBDIR,