summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-04-11 09:56:26 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-04-11 22:15:45 -0400
commitc0dfd1ad973eaf0ca41e787d696745c02412a2bb (patch)
tree8396b105c73e07096890eaf4c2dcc339b13fb277 /include/git2/errors.h
parentbf2620bcefa64e9c0c28621d9ea7c16e5a40c61b (diff)
downloadlibgit2-c0dfd1ad973eaf0ca41e787d696745c02412a2bb.tar.gz
repo: ensure that repo dir is owned by current user
Ensure that the repository directory is owned by the current user; this prevents us from opening configuration files that may have been created by an attacker.
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index aba6d75e3..a61964bbb 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -57,7 +57,8 @@ typedef enum {
GIT_RETRY = -32, /**< Internal only */
GIT_EMISMATCH = -33, /**< Hashsum mismatch in object */
GIT_EINDEXDIRTY = -34, /**< Unsaved changes in the index would be overwritten */
- GIT_EAPPLYFAIL = -35 /**< Patch application failed */
+ GIT_EAPPLYFAIL = -35, /**< Patch application failed */
+ GIT_EOWNER = -36 /**< The object is not owned by the current user */
} git_error_code;
/**