You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.2 KiB

  1. Index: sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf/src/clientlib/client_library.c
  2. ===================================================================
  3. --- sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf.orig/src/clientlib/client_library.c
  4. +++ sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf/src/clientlib/client_library.c
  5. @@ -405,14 +405,6 @@ sr_connect(const char *app_name, const s
  6. if (SR_ERR_OK != rc) {
  7. if (opts & SR_CONN_DAEMON_REQUIRED) {
  8. if ((opts & SR_CONN_DAEMON_START) && (0 == getuid())) {
  9. - /* sysrepo daemon start requested and process is running under root privileges */
  10. - SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it.");
  11. - ret = system("sysrepod");
  12. - if (0 == ret) {
  13. - SR_LOG_INF_MSG("Sysrepo daemon has been started.");
  14. - } else {
  15. - SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret);
  16. - }
  17. /* retry to connect again in any case */
  18. rc = cl_socket_connect(connection, SR_DAEMON_SOCKET);
  19. CHECK_RC_LOG_GOTO(rc, cleanup, "Unable to connect to sysrepod: %s.", sr_strerror(rc));