[asterisk-bugs] [JIRA] (ASTERISK-27589) [patch] BuildSystem: Avoid $EUID and use id -u instead.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Tue Jan 16 06:30:49 CST 2018


Alexander Traud created ASTERISK-27589:
------------------------------------------

             Summary: [patch] BuildSystem: Avoid $EUID and use id -u instead.
                 Key: ASTERISK-27589
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27589
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/BuildSystem
    Affects Versions: 15.2.0, 13.19.0
         Environment: OpenBSD 6.2
            Reporter: Alexander Traud
            Severity: Minor


Currently, the Makefile calls {{$\{EUID\}}}. This does not work (out-of-the-box) in OpenBSD 6.2, because {{$\{EUID\}}} requires the shell _bash_. OpenBSD 6.2 uses _ksh_ on default. To keep compatibility with other shells like _dash_ or _ksh_, use {{id -u}} instead.{code}/bin/sh: [: 0: unexpected operator/operand{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list