[Bug 287830] www/sitecopy: fix permission parsing

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Jun 2025 12:25:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287830

            Bug ID: 287830
           Summary: www/sitecopy: fix permission parsing
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd@oldach.net

Created attachment 261632
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261632&action=edit
limit parsing of permissions

Some ls(1) implementations deliver garbage after drwxrwxrwx (see below).
Make sure it doesn't hurt when fed into parse_permissions().

total 656
drwxr-xr-x. 2 1835195 customer   4096 Jun 26 13:19 .
drwxr-xr-x. 4 1835195 www        8192 Jun 26 13:38 ..
-rw-r--r--. 1 1835195 customer     43 Nov 24  2003 1x1transp.gif

In theory this should be included upstream obviously, however upstream hasn't
been touched since almost 17 years. Suggest to fix here for now.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer informed via mail

-- 
You are receiving this mail because:
You are the assignee for the bug.