View | Details | Raw Unified | Return to bug 222122
Collapse All | Expand All

(-)/tmp/milter-opendkim 2017-12-20 09:56:03.436497000 +0100 (-8 / +8 lines)
Lines 178-196 Link Here
178
{
178
{
179
    # postcmd is executed too fast and socket is not created before checking...
179
    # postcmd is executed too fast and socket is not created before checking...
180
    sleep 1
180
    sleep 1
181
    if [ -S ${milteropendkim_socket##local:} ] ; then
181
    if [ -S "${milteropendkim_socket##local:}" ] ; then
182
        chmod ${_piddir_perms} ${milteropendkim_socket##local:}
182
        chmod ${_piddir_perms} "${milteropendkim_socket##local:}"
183
    elif [ -S ${milteropendkim_socket##unix:} ] ; then
183
    elif [ -S "${milteropendkim_socket##unix:}" ] ; then
184
        chmod ${_piddir_perms} ${milteropendkim_socket##unix:}
184
        chmod ${_piddir_perms} "${milteropendkim_socket##unix:}"
185
    fi
185
    fi
186
}
186
}
187
187
188
dkim_postcmd()
188
dkim_postcmd()
189
{
189
{
190
    if [ -S ${milteropendkim_socket##local:} ] ; then
190
    if [ -S "${milteropendkim_socket##local:}" ] ; then
191
        rm -f ${milteropendkim_socket##local:}
191
        rm -f "${milteropendkim_socket##local:}"
192
    elif [ -S ${milteropendkim_socket##unix:} ] ; then
192
    elif [ -S "${milteropendkim_socket##unix:}" ] ; then
193
        rm -f ${milteropendkim_socket##unix:}
193
        rm -f "${milteropendkim_socket##unix:}"
194
    fi
194
    fi
195
    # just if the directory is empty
195
    # just if the directory is empty
196
    rmdir ${_piddir} > /dev/null 2>&1
196
    rmdir ${_piddir} > /dev/null 2>&1

Return to bug 222122