xbps-checkvers: print real errno returned by opendir().

This commit is contained in:
Juan RP 2015-08-17 15:51:41 +02:00
parent 0d5385ad2b
commit 7ed6a8940f

View File

@ -622,7 +622,7 @@ rcv_process_dir(rcv_t *rcv, const char *path, rcv_proc_func process)
error: error:
if (errors > 0 || !dir) { if (errors > 0 || !dir) {
fprintf(stderr, "Error: while processing dir '%s': %s\n", path, fprintf(stderr, "Error: while processing dir '%s': %s\n", path,
strerror(errors)); strerror(errno));
exit(1); exit(1);
} }