https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285670

            Bug ID: 285670
           Summary: x11-wm/xfce4-session: bashism in xflock4 script in
                    4.20.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: xfce@FreeBSD.org
          Reporter: th...@freenet.de
             Flags: maintainer-feedback?(xfce@FreeBSD.org)
          Assignee: xfce@FreeBSD.org

After updating the port to 4.20.2, attempts to lock the screen fail
with this error:

   /usr/local/bin/xflock4: arithmetic expression: expecting primary: "2**31 -
1"

I presume this is due to line#55 in xflock4 and the failure is
caused by the script being run with /bin/sh:

    1   #!/bin/sh
    2   #
   [...]
   49   # echo is used to strip blanks
   50   # $((2**31 - 1)) is MAXINT, which disables timeout: see
   51   # https://dbus.freedesktop.org/doc/api/html/group__DBusPendingCall.html
   52   ret=$(echo $(dbus-send --session \
   53                          --dest=org.xfce.SessionManager \
   54                          --print-reply=literal \
   55                          --reply-timeout=$((2**31 - 1)) \
   56                          --type=method_call \
   57                          /org/xfce/SessionManager \
   58                          org.xfce.Session.Manager.Lock))

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

Reply via email to