Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2020 17:25:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247596] net/rdist6: fix hardlinking files with spaces in names
Message-ID:  <bug-247596-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247596

            Bug ID: 247596
           Summary: net/rdist6: fix hardlinking files with spaces in names
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: mail@fbsd.e4m.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

Created attachment 215993
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215993&action=
=3Dedit
fix hardlinking with spaces in names

rdist6 fails to distribute hardlinks when there are spaces in their names. =
This
is because the corresponding command looks like

k3000000 /path/to/srcfile targetfile

and is parsed by strtok() using space as separator :-(.

The patch changes this command to the form

k3000000 srcpathlen /path/to/srcfile targetfile

where srcpathlen contains the length of /path/to/srcfile and replaces strto=
k()
parsing by something which honours srcpathlen.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247596-7788>