Restore strerror as %m is unsupported by the BSDs

The BSDs just print m instead of the actual error message. Benefit
is not worth the cost.
This commit is contained in:
Rosen Penev
2017-02-03 17:53:50 -08:00
parent cc991ee106
commit 2a2bd0e2b1
26 changed files with 108 additions and 117 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ int debugfile_init (hashcat_ctx_t *hashcat_ctx)
{
fclose (fp);
event_log_error (hashcat_ctx, "%s: %m", debugfile_ctx->filename);
event_log_error (hashcat_ctx, "%s: %s", debugfile_ctx->filename, strerror (errno));
return -1;
}