Skip to content

Commit

Permalink
Fix detection of changes in the authorized keys list
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Nov 8, 2018
1 parent 593ea08 commit 38e8de0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/Users.pm
Expand Up @@ -3389,6 +3389,16 @@ sub UserReallyModified {
}
next;
}

if (defined $user{$key} && ref ($value) eq "ARRAY") {
if (!same_arrays($user{$key}, $value)) {
$ret = 1;
y2debug ("old value: ", @{$value});
y2debug ("changed to: ", @{$user{$key}});
}
next;
}

if (!defined $user{$key} ||
((!defined $value) && (defined $user{$key})) ||
((defined $value) && ($user{$key} ne $value)))
Expand Down

0 comments on commit 38e8de0

Please sign in to comment.