]> git.proxmox.com Git - libgit2.git/commit - src/fileops.c
fileops: save errno and report file existence
authorCarlos Martín Nieto <cmn@dwim.me>
Thu, 24 Dec 2015 17:21:51 +0000 (17:21 +0000)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 14 Nov 2016 10:34:14 +0000 (11:34 +0100)
commitf94825c10c1c8f003e80859530cce8ceea1bd314
treeac0be2c61e065532153771bb8ff33ba154e543fc
parent2d9aec99fb6a6a456aecbc354443c0c87e8a34e9
fileops: save errno and report file existence

We need to save the errno, lest we clobber it in the giterr_set()
call. Also add code for reporting that a path component is missing,
which is a distinct failure mode.
src/fileops.c