Displaying 1 result from an estimated 1 matches for "sshconf_postcanon".
2016 Aug 29
2
[PATCH] Make "ssh" try different configuration filenames
...} else {
- r = snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir,
- _PATH_SSH_USER_CONFFILE);
- if (r > 0 && (size_t)r < sizeof(buf))
- (void)read_config_file(buf, pw, host, host_arg,
- &options, SSHCONF_CHECKPERM | SSHCONF_USERCONF |
- (post_canon ? SSHCONF_POSTCANON : 0));
+ version_postfix = strchr(SSH_VERSION, '_');
+ if (!version_postfix)
+ version_postfix = "";
+
+ /* Find the best fitting config file,
+ * Ie. try "_7.3", "_7", and "". */
+ len = strlen(version_postfix);
+ while (1) {
+ r = snprint...