- /* TODO: Perhaps take a list of gids, and make them into the
- * supplementary groups. */
+ /* TODO: If we're not root, but the configuration requests
+ * that we change to some uid other than the current one, then
+ * log a warning. */
+
+ /* TODO: Perhaps take a list of gids, and make them into the
+ * supplementary groups. */
+
+ if (use_chroot) {
+ module_dirlen = 0;
+ set_excludes_dir("/", 1);
+ } else {
+ module_dirlen = strlen(lp_path(i));
+ set_excludes_dir(lp_path(i), module_dirlen);
+ }
+
+ p = lp_filter(i);
+ add_exclude(&server_exclude_list, p,
+ XFLG_WORD_SPLIT | XFLG_ABS_PATH);