samba36: add even more size optimizations, binary size is now down to about 2.7M...
[openwrt/svn-archive/archive.git] / net / samba36 / patches / 270-remove_registry_backend.patch
index d288645389f55de81b470be67a0f2f59ad616ab7..a1cc87771a07552904c27dd9ca663399b77c6fdf 100644 (file)
                libnetapi_set_error_string(ctx,
                        "Configuration manipulation requested but not "
                        "supported by backend");
+--- a/source3/smbd/server.c
++++ b/source3/smbd/server.c
+@@ -1210,8 +1210,10 @@ extern void build_options(bool screen);
+               exit(1);
+       }
++#ifdef REGISTRY_BACKEND
+       if (!W_ERROR_IS_OK(registry_init_full()))
+               exit(1);
++#endif
+ #ifdef PRINTER_SUPPORT
+       if (!print_backend_init(smbd_messaging_context()))