Skip to content

trusted-fingerprint: fix for error log when known_hosts file doesn't exist#8

Merged
Isha-Sharma merged 1 commit intomainfrom
test-known-hosts
Jan 22, 2024
Merged

trusted-fingerprint: fix for error log when known_hosts file doesn't exist#8
Isha-Sharma merged 1 commit intomainfrom
test-known-hosts

Conversation

@Srinivasan-tm
Copy link
Contributor

in verify-fingerprint.sh we search for the hashed hostname in known_hosts file in the user's home directory without testing if the file actually exists. So adding a test -f for that.

@Isha-Sharma Isha-Sharma changed the title Fix for error when known_hosts file doesn't exist trusted-fingerprint: fix for error log when known_hosts file doesn't exist Jan 22, 2024
@Isha-Sharma Isha-Sharma linked an issue Jan 22, 2024 that may be closed by this pull request
@Isha-Sharma Isha-Sharma merged commit f26e5e4 into main Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verify-fingerprint: logs should exclude "no file found" error

2 participants