xbps-checkvers: print real errno returned by opendir().
This commit is contained in:
parent
0d5385ad2b
commit
7ed6a8940f
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user