Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 07:40:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 235121] shells/rssh: rssh crashes on invocation due to new basename(3) POSIX behaviour
Message-ID:  <bug-235121-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 235121
           Summary: shells/rssh: rssh crashes on invocation due to new
                    basename(3) POSIX behaviour
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: topical@gmx.net
                CC: jharris@widomaker.com
             Flags: maintainer-feedback?(jharris@widomaker.com)
                CC: jharris@widomaker.com

In FreeBSD 12.0, basename(3) was changed to be POSIX compliant. This implies
that it can possibly write to the passed string.

rssh passes a const string, so it always crashes on invocation.

There are 2 solutions:

  * modify basename(3) so it only modifies the string if it has to
  * modify rssh, making a copy of the string first and pass it instead

The first solution may help other ports as well but I know that it will take
some time until this change will be public. Meanwhile we could fix at least
this single port by making it more POSIX compliant.

--=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-235121-7788>