1
0

220-remove_services.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --- a/source3/librpc/rpc/rpc_common.c
  2. +++ b/source3/librpc/rpc/rpc_common.c
  3. @@ -131,6 +131,7 @@ static bool initialize_interfaces(void)
  4. if (!smb_register_ndr_interface(&ndr_table_initshutdown)) {
  5. return false;
  6. }
  7. +#ifdef EXTRA_SERVICES
  8. if (!smb_register_ndr_interface(&ndr_table_svcctl)) {
  9. return false;
  10. }
  11. @@ -140,6 +141,7 @@ static bool initialize_interfaces(void)
  12. if (!smb_register_ndr_interface(&ndr_table_ntsvcs)) {
  13. return false;
  14. }
  15. +#endif
  16. if (!smb_register_ndr_interface(&ndr_table_epmapper)) {
  17. return false;
  18. }
  19. --- a/source3/rpc_server/rpc_ep_setup.c
  20. +++ b/source3/rpc_server/rpc_ep_setup.c
  21. @@ -697,6 +697,7 @@ static bool spoolss_shutdown_cb(void *pt
  22. return true;
  23. }
  24. +#ifdef EXTRA_SERVICES
  25. static bool svcctl_init_cb(void *ptr)
  26. {
  27. struct dcesrv_ep_context *ep_ctx =
  28. @@ -733,6 +734,7 @@ static bool svcctl_init_cb(void *ptr)
  29. return true;
  30. }
  31. +#endif
  32. static bool svcctl_shutdown_cb(void *ptr)
  33. {
  34. @@ -741,6 +743,8 @@ static bool svcctl_shutdown_cb(void *ptr
  35. return true;
  36. }
  37. +#ifdef EXTRA_SERVICES
  38. +
  39. static bool ntsvcs_init_cb(void *ptr)
  40. {
  41. struct dcesrv_ep_context *ep_ctx =
  42. @@ -802,6 +806,7 @@ static bool eventlog_init_cb(void *ptr)
  43. return true;
  44. }
  45. +#endif
  46. static bool initshutdown_init_cb(void *ptr)
  47. {
  48. @@ -1130,6 +1135,7 @@ bool dcesrv_ep_setup(struct tevent_conte
  49. }
  50. }
  51. +#ifdef EXTRA_SERVICES
  52. svcctl_cb.init = svcctl_init_cb;
  53. svcctl_cb.shutdown = svcctl_shutdown_cb;
  54. svcctl_cb.private_data = ep_ctx;
  55. @@ -1150,6 +1156,7 @@ bool dcesrv_ep_setup(struct tevent_conte
  56. if (!NT_STATUS_IS_OK(rpc_eventlog_init(&eventlog_cb))) {
  57. return false;
  58. }
  59. +#endif
  60. initshutdown_cb.init = initshutdown_init_cb;
  61. initshutdown_cb.shutdown = NULL;
  62. --- a/source3/smbd/server_exit.c
  63. +++ b/source3/smbd/server_exit.c
  64. @@ -140,9 +140,11 @@ static void exit_server_common(enum serv
  65. #endif
  66. rpc_netdfs_shutdown();
  67. rpc_initshutdown_shutdown();
  68. +#ifdef EXTRA_SERVICES
  69. rpc_eventlog_shutdown();
  70. - rpc_ntsvcs_shutdown();
  71. rpc_svcctl_shutdown();
  72. + rpc_ntsvcs_shutdown();
  73. +#endif
  74. #ifdef PRINTER_SUPPORT
  75. rpc_spoolss_shutdown();
  76. #endif
  77. --- a/source3/rpcclient/rpcclient.c
  78. +++ b/source3/rpcclient/rpcclient.c
  79. @@ -637,9 +637,11 @@ static struct cmd_set *rpcclient_command
  80. shutdown_commands,
  81. test_commands,
  82. wkssvc_commands,
  83. +#ifdef EXTRA_SERVICES
  84. ntsvcs_commands,
  85. drsuapi_commands,
  86. eventlog_commands,
  87. +#endif
  88. winreg_commands,
  89. NULL
  90. };