- /*
- * Try system session configuration path. Ignore error here so we can
- * continue loading the home sessions. The above call should print an
- * error to inform the user.
- */
- if (autoload) {
- sys_path = DEFAULT_SESSION_SYSTEM_CONFIGPATH "/"
- DEFAULT_SESSION_CONFIG_AUTOLOAD;
- } else {
- sys_path = DEFAULT_SESSION_HOME_CONFIGPATH;
- }
-
- ret = validate_path_creds(sys_path);
- if (!ret && autoload) {
- (void) load_session_from_path(sys_path, session_name,
- &validation_ctx, override);
- }
-