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/refdb_fs.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/refdb_fs.c')
-rw-r--r-- | src/refdb_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c index 24cb22fb0..d5aa39684 100644 --- a/src/refdb_fs.c +++ b/src/refdb_fs.c @@ -76,7 +76,7 @@ GIT_INLINE(int) loose_path( if (git_buf_joinpath(out, base, refname) < 0) return -1; - return git_path_validate_filesystem_with_suffix(out->ptr, out->size, + return git_path_validate_length_with_suffix(out->ptr, out->size, CONST_STRLEN(".lock")); } @@ -1361,7 +1361,7 @@ static int refdb_fs_backend__prune_refs( git_buf_cstr(&relative_path)); if (!error) - error = git_path_validate_filesystem(base_path.ptr, base_path.size); + error = git_path_validate_length(base_path.ptr, base_path.size); if (error < 0) goto cleanup; |