From 62e5cf1e8c82c0e871ea7325cb593ba705d770bc Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 17 May 2022 10:20:35 +0200 Subject: [PATCH] pbs-client: fix symbolic mode display for 'other' mode Signed-off-by: Wolfgang Bumiller --- pbs-client/src/pxar/tools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-client/src/pxar/tools.rs b/pbs-client/src/pxar/tools.rs index 385693df..0a7da6ed 100644 --- a/pbs-client/src/pxar/tools.rs +++ b/pbs-client/src/pxar/tools.rs @@ -97,7 +97,7 @@ fn mode_string(entry: &Entry) -> String { let fmt_u = symbolic_mode((mode >> 6) & 7, 0 != mode & mode::ISUID, b's', b'S'); let fmt_g = symbolic_mode((mode >> 3) & 7, 0 != mode & mode::ISGID, b's', b'S'); - let fmt_o = symbolic_mode((mode >> 3) & 7, 0 != mode & mode::ISVTX, b't', b'T'); + let fmt_o = symbolic_mode(mode & 7, 0 != mode & mode::ISVTX, b't', b'T'); let has_acls = if meta.acl.is_empty() { ' ' } else { '+' };