--- /usr/local/etc/rc.d/milter-opendkim 2017-12-20 09:55:49.753794000 +0100 +++ /tmp/milter-opendkim 2017-12-20 09:56:03.436497000 +0100 @@ -178,19 +178,19 @@ { # postcmd is executed too fast and socket is not created before checking... sleep 1 - if [ -S ${milteropendkim_socket##local:} ] ; then - chmod ${_piddir_perms} ${milteropendkim_socket##local:} - elif [ -S ${milteropendkim_socket##unix:} ] ; then - chmod ${_piddir_perms} ${milteropendkim_socket##unix:} + if [ -S "${milteropendkim_socket##local:}" ] ; then + chmod ${_piddir_perms} "${milteropendkim_socket##local:}" + elif [ -S "${milteropendkim_socket##unix:}" ] ; then + chmod ${_piddir_perms} "${milteropendkim_socket##unix:}" fi } dkim_postcmd() { - if [ -S ${milteropendkim_socket##local:} ] ; then - rm -f ${milteropendkim_socket##local:} - elif [ -S ${milteropendkim_socket##unix:} ] ; then - rm -f ${milteropendkim_socket##unix:} + if [ -S "${milteropendkim_socket##local:}" ] ; then + rm -f "${milteropendkim_socket##local:}" + elif [ -S "${milteropendkim_socket##unix:}" ] ; then + rm -f "${milteropendkim_socket##unix:}" fi # just if the directory is empty rmdir ${_piddir} > /dev/null 2>&1