diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-10-10 08:05:19 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-10-10 08:14:18 -0400 |
commit | 42bf01860c4ed3a5c15286e711c2287a39661fd8 (patch) | |
tree | e92be1a820261e00787838b76a92b85b77d3f625 /src/repository.c | |
parent | f898d2d5875213a406735fbe41d2100ff3bcecfd (diff) | |
download | libgit2-ethomson/path_validation.tar.gz |
path: rename `git_path_validate_filesystem`ethomson/path_validation
"filesystem validation" is vague. These functions validate the length,
name them as such.
Diffstat (limited to 'src/repository.c')
-rw-r--r-- | src/repository.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repository.c b/src/repository.c index 5901dd308..56579ceb4 100644 --- a/src/repository.c +++ b/src/repository.c @@ -239,7 +239,7 @@ GIT_INLINE(int) validate_repo_path(git_buf *path) CONST_STRLEN("objects/pack/pack-.pack.lock") + GIT_OID_HEXSZ; - return git_path_validate_filesystem_with_suffix( + return git_path_validate_length_with_suffix( path->ptr, path->size, suffix_len); } @@ -3265,7 +3265,7 @@ int git_repository_validate_workdir_path( const char *path) { if (should_validate_longpaths(repo)) - return git_path_validate_filesystem(path, strlen(path)); + return git_path_validate_length(path, strlen(path)); return 0; } @@ -3276,7 +3276,7 @@ int git_repository_validate_workdir_path_with_len( size_t path_len) { if (should_validate_longpaths(repo)) - return git_path_validate_filesystem(path, path_len); + return git_path_validate_length(path, path_len); return 0; } |