diff options
author | Andrey Okoshkin <a.okoshkin@samsung.com> | 2017-10-27 12:33:25 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-29 10:16:36 +0900 |
commit | 10e0ca843dea3e8135678600f22e0baa1edf6e44 (patch) | |
tree | 4e6e9b164aaf5c3e77a1f42c58bdf54866cd3ba1 /submodule.h | |
parent | Git 2.13.6 (diff) | |
download | tgif-10e0ca843dea3e8135678600f22e0baa1edf6e44.tar.xz |
diff: fix lstat() error handling in diff_populate_filespec()
Add lstat() error handling not only for ENOENT case.
Otherwise uninitialised 'struct stat st' variable is used later in case of
lstat() non-ENOENT failure which leads to processing of rubbish values of
file mode ('S_ISLNK(st.st_mode)' check) or size ('xsize_t(st.st_size)').
Signed-off-by: Andrey Okoshkin <a.okoshkin@samsung.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
0 files changed, 0 insertions, 0 deletions