summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/stack.c.gen13
1 files changed, 9 insertions, 4 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen
index 9f2d60f..2a23565 100755
--- a/build-aux/stack.c.gen
+++ b/build-aux/stack.c.gen
@@ -457,7 +457,9 @@ def main(
# 3=just 1 level of subdirectories
# 4=just 2 levels of subdirectories
# ...
- sbc_9p_max_depth = 3
+ #
+ # TODO: Sniff this from config.h
+ CONFIG_9P_SRV_MAX_DEPTH = 3
def sbc_skip_call(chain: list[str], call: str) -> bool:
if (
@@ -468,9 +470,12 @@ def main(
):
return True
if (
- len(chain) >= sbc_9p_max_depth
- and "/srv.c:util_release" in call
- and all(("/srv.c:util_release" in c) for c in chain[-sbc_9p_max_depth:])
+ len(chain) >= CONFIG_9P_SRV_MAX_DEPTH
+ and "/srv.c:srv_util_pathfree" in call
+ and all(
+ ("/srv.c:srv_util_pathfree" in c)
+ for c in chain[-CONFIG_9P_SRV_MAX_DEPTH:]
+ )
):
return True
return False