Move everything to negative errno return types (#1499)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-07-25 17:53:48 -05:00 • committed by GitHub
parent 2b500f194a
commit e8cd74cab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 5952 additions and 5843 deletions

View file

@ -122,8 +122,8 @@ _compare_files(const std::string &mergerfs_path_,
for(auto &pathstat : pathstats_)
{
rv = fs::lstat(pathstat.path,&pathstat.st);
if(rv == -1)
pathstat.st.st_size = -errno;
if(rv < 0)
pathstat.st.st_size = rv;
}
if(!::_files_differ(pathstats_,check_size_))
@ -374,7 +374,7 @@ _fsck(const FS::path &path_,
{
paths.clear();
rv = ::_get_allpaths(de.path(),paths);
if(rv == -1)
if(rv < 0)
continue;
::_compare_files(de.path(),