Skip to content

Commit

Permalink
Fix const argument for apply_config_settings(), add CI
Browse files Browse the repository at this point in the history
DROPBEAR_USE_SSH_CONFIG wasn't being tested
  • Loading branch information
mkj committed Apr 4, 2024
1 parent 12f70d8 commit 5a37e37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
- name: nondefault options
nondefault: 1
configure_flags: --enable-pam
localoptions: |
#define DROPBEAR_USE_SSH_CONFIG 1
- name: most options disabled
configure_flags: --disable-harden --disable-zlib --disable-openpty --disable-lastlog
Expand Down
4 changes: 2 additions & 2 deletions src/cli-runopts.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static void add_netcat(const char *str);
static void add_extendedopt(const char *str);

#if DROPBEAR_USE_SSH_CONFIG
void apply_config_settings(char* cli_host_arg);
static void apply_config_settings(const char* cli_host_arg);
#endif

static void printhelp() {
Expand Down Expand Up @@ -1050,7 +1050,7 @@ static void add_extendedopt(const char* origstr) {
}

#if DROPBEAR_USE_SSH_CONFIG
void apply_config_settings(char* cli_host_arg) {
static void apply_config_settings(const char* cli_host_arg) {
char* is_multi_hop_host_target = strchr(cli_host_arg, ',');
if (!is_multi_hop_host_target) {
char* config_path = expand_homedir_path(DROPBEAR_DEFAULT_SSH_CONFIG);
Expand Down

0 comments on commit 5a37e37

Please sign in to comment.