From 7bfcb4dd10d31f5f9566c90a28449c0951f3a48e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 10 Sep 2024 20:12:24 +0200 Subject: feat(cli): use NotCapable error for permission errors (#25431) Closes #7394 --------- Co-authored-by: snek --- tests/specs/run/ld_preload/env_arg.out | 8 ++++---- tests/specs/run/ld_preload/set_with_allow_env.out | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/specs/run') diff --git a/tests/specs/run/ld_preload/env_arg.out b/tests/specs/run/ld_preload/env_arg.out index 3df781a8e..945737e65 100644 --- a/tests/specs/run/ld_preload/env_arg.out +++ b/tests/specs/run/ld_preload/env_arg.out @@ -1,8 +1,8 @@ -PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. +NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. [WILDCARD] - name: "PermissionDenied" + name: "NotCapable" } -PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. +NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. [WILDCARD] - name: "PermissionDenied" + name: "NotCapable" } diff --git a/tests/specs/run/ld_preload/set_with_allow_env.out b/tests/specs/run/ld_preload/set_with_allow_env.out index 60dba7cff..f89582d6c 100644 --- a/tests/specs/run/ld_preload/set_with_allow_env.out +++ b/tests/specs/run/ld_preload/set_with_allow_env.out @@ -1,8 +1,8 @@ -PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. +NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable. [WILDCARD] - name: "PermissionDenied" + name: "NotCapable" } -PermissionDenied: Requires --allow-all permissions to spawn subprocess with DYLD_FALLBACK_LIBRARY_PATH, LD_PRELOAD environment variables. +NotCapable: Requires --allow-all permissions to spawn subprocess with DYLD_FALLBACK_LIBRARY_PATH, LD_PRELOAD environment variables. [WILDCARD] - name: "PermissionDenied" + name: "NotCapable" } -- cgit v1.2.3