Socket parameter is not properly passed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mimedefang (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Installed MIMEDefang and modified /etc/init.
`[ "$MD_SKIP_
"`[ -n "$X_SCANNED_BY" ] && \
( [ "$X_SCANNED_BY" = "-" ] && \
echo "-X" || echo "-x$X_SCANNED_BY" )`" \
`[ "$ALLOW_
I did not define $X_SCANNED_BY. I am not a bash expert but I suspected the outer quotes around the handling of that value to be responsible. I removed them and the extra space in the command went away resulting in the service working as expected:
`[ "$MD_SKIP_
`[ -n "$X_SCANNED_BY" ] && \
( [ "$X_SCANNED_BY" = "-" ] && \
echo "-X" || echo "-x$X_SCANNED_BY" )` \
`[ "$ALLOW_
The folks at ServerFault mentioned this qualified as a bug and I think I agree so I figured I would report it here. Since I don't know what the purpose of those where I don't know if that solution would work for anyone who is using $X_SCANNED_BY. This was all in Ubuntu 16.04.4 LTS and mimedefang 2.78-1ubuntu1.1.