-
Notifications
You must be signed in to change notification settings - Fork 1.1k
syscall errors #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syscall errors #401
Conversation
My access to github is odd at the moment, so I can't comment on the code directly. |
@ddpbsd thanks for your feedback:
|
I'm fine with either "Could not" or "unable," I was just curious. |
@@ -128,7 +128,7 @@ int k_import(const char *cmdimport) | |||
{ | |||
if (mkstemp_ex(tmp_path)) | |||
{ | |||
ErrorExit(MKSTEMP_ERROR, ARGV0, tmp_path); | |||
exit(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In mkstemp_ex() a message is generated or isn't log2file() something different then merror()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it is true that errors get logged in mkstemp_ex()
but I would still keep this error message around here in case the upstream code changes for some reason and stops making those errors for whatever reason. Hopefully, that makes sense. Sure it is a little redundant but I'd rather this than not knowing what happened.
display
errno
andstrerror(errno)
on syscall failures