From 6290ce41f3ec1f889abb881cf90ca91da869b5b2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 30 Jul 2024 16:44:17 -0400 Subject: parse: Take umask into account in parse_mode() POSIX 2024 clarified that find(1) is meant to work exactly like chmod(1) here, so for modes like +rw,-x with no "who" specified, apply the umask. Link: https://www.austingroupbugs.net/view.php?id=1392 --- tests/bfs/perm_leading_plus_symbolic.out | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/bfs') diff --git a/tests/bfs/perm_leading_plus_symbolic.out b/tests/bfs/perm_leading_plus_symbolic.out index fdc175d..09bc88f 100644 --- a/tests/bfs/perm_leading_plus_symbolic.out +++ b/tests/bfs/perm_leading_plus_symbolic.out @@ -1,2 +1,3 @@ -perms/drwxrwxrwx -perms/frwxrwxrwx +perms +perms/drwxr-xr-x +perms/frwxr-xr-x -- cgit v1.2.3