+
+ vfs_objects = lp_vfs_objects(s);
+ if (vfs_objects && str_list_check(vfs_objects, "fruit")) {
+ uses_fruit = true;
+ if (!lp_ea_support(s) && !lp_ea_support(-1)) {
+ fprintf(stderr,
+ "ERROR: Service \"%s\" uses vfs_fruit, but "
+ "that requires \"ea support = yes\".\n\n",
+ lp_servicename(talloc_tos(), s));
+ }
+ } else {
+ doesnt_use_fruit = true;
+ }
+
+ if (uses_fruit && doesnt_use_fruit && !fruit_mix_warned) {
+ fruit_mix_warned = true;
+ fprintf(stderr,
+ "WARNING: some services use vfs_fruit, others don't. Mounting them "
+ "in conjunction on OS X clients results in undefined behaviour.\n\n");
+ }