Skip to content

Commit 86031f4

Browse files
committed
Dropped all/any options (in favour of all_of/any_of options).
1 parent 89c82f5 commit 86031f4

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- Autoconf -*-
22
# Process this file with autoconf to produce a configure script.
33
AC_PREREQ([2.69])
4-
AC_INIT([pam-ssh-auth-info], [1.8.20230906], [Eero+pam-ssh-auth-info@Häkkinen.fi], [], [https://github.Eero.Häkkinen.fi/pam-ssh-auth-info/])
4+
AC_INIT([pam-ssh-auth-info], [2.0.20250421], [Eero+pam-ssh-auth-info@Häkkinen.fi], [], [https://github.Eero.Häkkinen.fi/pam-ssh-auth-info/])
55
AC_CONFIG_MACRO_DIRS([m4])
66
AC_CONFIG_HEADERS([config.h])
77
AC_CONFIG_SRCDIR([line_tokens_match.h])

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pam-ssh-auth-info (2.0.~~yyyymmdd) UNRELEASED; urgency=low
1+
pam-ssh-auth-info (2.0.20250421) unstable; urgency=low
22

33
* Avoided unneeded measurements of extended patterns.
44
* Measured !(...) extended patterns.
@@ -12,6 +12,7 @@ pam-ssh-auth-info (2.0.~~yyyymmdd) UNRELEASED; urgency=low
1212
* Clarified documentation of extended patterns.
1313
* Added debian/*.install and debian/not-install files.
1414
* Declared an optional build-dependency metapackage.
15+
* Dropped all/any options (in favour of all_of/any_of options).
1516

1617
-- Eero Häkkinen <[email protected]> Mon, 21 Apr 2025 18:44:59 +0300
1718

pam_ssh_auth_info.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,9 @@ pam_sm_authenticate(
9999
bool quiet_success = false;
100100
unsigned recursion_limit = 100u;
101101
for (; argc > 0; --argc, ++argv) {
102-
if (strncmp(*argv, "all", 3) == 0 && (
103-
strcmp(*argv + 3, "_of") == 0 ||
104-
strcmp(*argv + 3, "") == 0
105-
))
102+
if (strcmp(*argv, "all_of") == 0)
106103
match_style = MATCH_ALL_OF;
107-
else if (strncmp(*argv, "any", 3) == 0 && (
108-
strcmp(*argv + 3, "_of") == 0 ||
109-
strcmp(*argv + 3, "") == 0
110-
))
104+
else if (strcmp(*argv, "any_of") == 0)
111105
match_style = MATCH_ANY_OF;
112106
else if (strcmp(*argv, "debug") == 0)
113107
debug = true;

0 commit comments

Comments
 (0)