Skip to content

Commit e3530f1

Browse files
tannevaledCopilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 069770d commit e3530f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkgm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,7 @@ function reachable_as(p: string, user: string): boolean {
889889
if (p === "/root" || p.startsWith("/root/")) return false;
890890
if (p === "/var/root" || p.startsWith("/var/root/")) return false;
891891

892-
const m = p.match(/^\/(home|Users)\/([^/]+)(?:\/|$)/);
893-
if (m) return false;
892+
if (p.match(/^\/(home|Users)\/([^/]+)(?:\/|$)/)) return false;
894893

895894
return true;
896895
}

0 commit comments

Comments
 (0)