From 131cfcf223f97a00375489f9a001a6a1dc23e972 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 13 Jul 2021 15:34:59 +0000 Subject: [PATCH] strip: Silence any warnings for files without capabilities Signed-off-by: Michael Tremer --- src/stripper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stripper b/src/stripper index e51463c691..6f449bb397 100755 --- a/src/stripper +++ b/src/stripper @@ -29,7 +29,7 @@ function _strip() { # Fetch any capabilities local capabilities="$(getfattr --no-dereference --name="security.capability" \ - --absolute-names --dump "${file}")" + --absolute-names --dump "${file}" 2>/dev/null)" local cmd=( "${strip}" ) -- 2.39.5