Opened 8 years ago

Closed 8 years ago

#41179 closed defect (fixed)

wemux @2.2.0_0 points to file in /etc instead of ${prefix}/etc

Reported by: nando@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: wemux


After a freshly-installed wemux, I copied the sample config at '/opt/local/etc/wemux.conf.example' to '/opt/local/etc/wemux.conf' with a modified 'host_list' including my login name. However, I still couldn't start the server as an unprivileged user. It works OK with 'sudo' though.

A 'sudo dtruss wemux start' gives the following relevant info:

read(0xFF, "# Set $EDITOR default to vi if not configured on host machine.\neditor=${EDITOR:=\"vi\"}\n\n# Load configuration options from /etc/wemux.conf\n[ -f /etc/wemux.conf ] && . /etc/wemux.conf\n\n# Sanitize session name, replace spaces and underscores with dashes.\n# Rem", 0x2000)		 = 8192 0
sigprocmask(0x1, 0x0, 0x7FFF53F80900)		 = 0x0 0
stat64("/etc/wemux.conf\0", 0x7FFF53F7FF80, 0x10BCC49EC)		 = -1 Err#2

Then I moved the file to /etc and there was no problem with wemux. So, shouldn't the config file be read from '${prefix}/etc' instead of '/etc' ? -- My '/opt/local/etc/macports/macports.conf' prefix var points to '/opt/local' btw.

Thanks in advance, nando

Change History (4)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to g5pw@…

comment:2 Changed 8 years ago by nando@…

Hi again,

Apparently, the script '/opt/local/bin/wemux' is to be blamed:

63. # Load configuration options from /etc/wemux.conf
64. [ -f /etc/wemux.conf ] && . /etc/wemux.conf

comment:3 Changed 8 years ago by g5pw (Aljaž Srebrnič)

Thanks, I'll investigate and fix it this week.

comment:4 Changed 8 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Fixed in r112990, thanks.

Note: See TracTickets for help on using tickets.