[yast/yast-users] 95d255: Do not log warnings for comments and empty lines
Branch: refs/heads/bsc-1188361 Home: https://github.com/yast/yast-users Commit: 95d2550acd301eff805bae4e32eb278da7d54009 https://github.com/yast/yast-users/commit/95d2550acd301eff805bae4e32eb278da7... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-07-19 (Mon, 19 Jul 2021) Changed paths: M src/lib/users/ssh_authorized_keys_file.rb M test/lib/users/ssh_authorized_keys_file_test.rb Log Message: ----------- Do not log warnings for comments and empty lines When SSHAuthorizedKeysFile#keys hold keys read by SSHAuthorizedKeyring#read_keys, it could include comments or empty lines too, which are valid but ignored authorized_keys entries (see sshd(8) man page). Thus, it's useless to log warnings about them. Only not valid keys deserve an entry in the logs.
participants (1)
-
David Díaz