summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2023-10-27 15:05:40 -0600
committerSam Hartman <hartmans@debian.org>2023-10-27 15:05:40 -0600
commit9a173719d3c2f26badfa0457a29f61ca05c89552 (patch)
tree3b4b3d5a030ce9a2a80f5d7fab913685ee2bd257
parent1bd966ef03c63bf9af87e147647e4141f6fa8fbf (diff)
pam-auth-update: Session-Interactive-Only set to anything other than
yes counts as undefined/no, thanks Lucas Nussbaum, Closes: #982309
-rw-r--r--debian/local/pam-auth-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index ac00b1c9..ca1cb36d 100644
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -735,7 +735,7 @@ sub parse_pam_profile
}
}
close(PROFILE);
- if (!defined($profile{'Session-Interactive-Only'})) {
+ if (!defined($profile{'Session-Interactive-Only'}) or $profile{'Session-Interactive-Only'} ne 'yes') {
$profile{'Session-noninteractive-Type'} = $profile{'Session-Type'};
$profile{'Session-noninteractive'} = $profile{'Session'};
$profile{'Session-noninteractive-Initial'} = $profile{'Session-Initial'};