check-racy.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8d19e93094
commit
eb031a5801
@ -12,7 +12,7 @@ int main(int ac, char **av)
|
|||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (lstat(ce->name, &st)) {
|
if (lstat(ce->name, &st)) {
|
||||||
error("lstat(%s): %s", ce->name, strerror(errno));
|
error_errno("lstat(%s)", ce->name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user