builtin/update-index.c: prefer "err" to "errno" in process_lstat_error

"errno" is already passed in as "err". Here we should use err instead of errno. errno is probably a copy/paste mistake in e011054 (Teach git-update-index about gitlinks - 2007-04-12) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 8, 2016 at 16:47 UTC 23d05364fc5ba9fcc54cf5ae5503f3e987cec315
1 file changed +1 -1
builtin/update-index.c
+1 -1
@@ -255,7 +255,7 @@ static int process_lstat_error(const char *path, int err)
255 {
256 if (err == ENOENT || err == ENOTDIR)
257 return remove_one_path(path);
258 - return error("lstat(\"%s\"): %s", path, strerror(errno));
258 + return error("lstat(\"%s\"): %s", path, strerror(err));
259 }
260
261 static int add_one_path(const struct cache_entry *old, const char *path, int len, struct stat *st)