mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Report stat error when checking if file modified
This commit is contained in:
parent
52c102b7f6
commit
e830c020f3
@ -988,8 +988,10 @@ int git_futils_filestamp_check(
|
||||
if (stamp == NULL)
|
||||
return 1;
|
||||
|
||||
if (p_stat(path, &st) < 0)
|
||||
if (p_stat(path, &st) < 0) {
|
||||
giterr_set(GITERR_OS, "Could not stat '%s'", path);
|
||||
return GIT_ENOTFOUND;
|
||||
}
|
||||
|
||||
if (stamp->mtime == (git_time_t)st.st_mtime &&
|
||||
stamp->size == (git_off_t)st.st_size &&
|
||||
|
Loading…
Reference in New Issue
Block a user