Skip to content

Commit

Permalink
Missing ')' (I swear it was compiling before)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokox committed Jan 17, 2024
1 parent a033b10 commit 0bd14e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion howdy/src/pam/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ auto check_enabled(const INIReader &config, const char* username) -> int {

// Stop if dark hour
if ((dark_start <= dark_end && dark_start <= local_minutes && local_minutes <= dark_end)
|| (dark_start > dark_end && (dark_start <= local_minutes || local_minutes <= dark_end)) {
|| (dark_start > dark_end && (dark_start <= local_minutes || local_minutes <= dark_end))) {
syslog(LOG_INFO, "Skipped authentication, dark hour");
return PAM_AUTHINFO_UNAVAIL;
}
Expand Down

0 comments on commit 0bd14e6

Please sign in to comment.