opt/cyrus-sasl/cyrus-sasl-2.1.21-plugin_path.patch
Simon Gloßner 4f876aac0b Added a necessary patch to compile cyrus-sasl with gcc4.
Splitted the big patch into two small ones.
2006-03-20 14:27:53 +00:00

23 lines
752 B
Diff

Index: lib/server.c
--- lib/server.c 2004-11-17 15:19:30 +0100
+++ lib/server.c 2005-05-26 20:54:36 +0200
@@ -473,16 +473,8 @@
return SASL_CONTINUE;
}
- /* get the path to the plugins; for now the config file will reside there */
- getpath_cb=_sasl_find_getpath_callback( global_callbacks.callbacks );
- if (getpath_cb==NULL) return SASL_BADPARAM;
-
- /* getpath_cb->proc MUST be a sasl_getpath_t; if only c had a type
- system */
- result = ((sasl_getpath_t *)(getpath_cb->proc))(getpath_cb->context,
- &path_to_config);
- if (result!=SASL_OK) goto done;
- if (path_to_config == NULL) path_to_config = "";
+ result = SASL_OK;
+ path_to_config = "/etc/sasl/apps";
c = strchr(path_to_config, PATHS_DELIMITER);