Skip to content

Commit

Permalink
nit: Change symlink limits from 1024 to 1000
Browse files Browse the repository at this point in the history
They do not involve base-2 exponential effects, so they should be
Normal base-10 round numbers.
  • Loading branch information
roberth committed Nov 19, 2023
1 parent a1da214 commit 2fc6d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libfetchers/input-accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ SourcePath SourcePath::parent() const

SourcePath SourcePath::followSymlinks() const {
SourcePath path = *this;
unsigned int followCount = 0, maxFollow = 1024;
unsigned int followCount = 0, maxFollow = 1000;

/* If `path' is a symlink, follow it. This is so that relative
path references work. */
Expand All @@ -81,7 +81,7 @@ SourcePath SourcePath::resolveSymlinks() const
{
auto res = accessor->root();

int linksAllowed = 1024;
int linksAllowed = 1000;

std::list<std::string> todo;
for (auto & c : path)
Expand Down

0 comments on commit 2fc6d09

Please sign in to comment.