[Bug 2700] Missing PEM identity_file should be a fatal error

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Mar 27 17:57:06 AEDT 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2700

--- Comment #2 from jg at jguk.org ---
Hi Darren
Thank you for your reply.

Yes, working configurations that still work after a missing
identity_file are specifically provided are impacted. I think if
someone specifies a file, it is expected to find it.. so let's change i
to fatal?

Re if a directory is specified, eg "my_dir" I think "Identity file
my_dir not accessible: No such file." is still accurate isn't it?

can use stat() to check if it is a file or dir, S_ISDIR etc, if really
needed to give a secondary message to say:

"Identity file my_dir not accessible: Is a directory."

Other tools do handle correctly this situation:

$ objdump -d missing_file
objdump: 'missing_file': No such file

$ objdump -d my_dir
objdump: Warning: 'my_dir' is not an ordinary file

Added it to my blog
http://technoramauk.blogspot.com/2017/03/enoent-no-such-file-or-directory.html

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list