depot/third_party/nixpkgs/pkgs/applications/misc/nut/hardcode-paths.patch
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

16 lines
505 B
Diff

--- a/common/common.c
+++ b/common/common.c
@@ -1990,6 +1990,13 @@ ssize_t select_write(serial_handler_t *fd, const void *buf, const size_t buflen,
* communications media and/or vendor protocol.
*/
static const char * search_paths_builtin[] = {
+ "@avahi@",
+ "@freeipmi@",
+ "@libgpiod@",
+ "@libusb@",
+ "@neon@",
+ "@libmodbus@",
+ "@netsnmp@",
/* Use the library path (and bitness) provided during ./configure first */
LIBDIR,
"/usr"LIBDIR, /* Note: this can lead to bogus strings like */