[Bug 267670] net/tsocks: ". tsocks off" results in sed error "bad flag in substitution command"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Nov 2022 16:44:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267670

            Bug ID: 267670
           Summary: net/tsocks: ". tsocks off" results in sed error "bad
                    flag in substitution command"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: chris@mumac.de
          Assignee: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)

After using ". tsocks on", a subsequent ". tsocks off" results in

  sed: 1: "s/\/usr/local\/lib\/lib ...": bad flag in substitute command: '/'

It's obvious that the backslash in front of the slash between usr and local is
missing. The corresponding line in /usr/local/bin/toscks is 56; adding the
missing backslash fixes the error.

Thanks,
--Christina

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