From: Daniel Kahn Gillmor Date: Fri, 1 Aug 2008 01:29:25 +0000 (-0400) Subject: fixed broken invocation of stat X-Git-Tag: monkeysphere_0.7-1~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b5404f0488d5ea642aec2e92988740af23d820d;p=monkeysphere.git fixed broken invocation of stat --- diff --git a/src/monkeysphere-server b/src/monkeysphere-server index d70fe93..03a4ccb 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -450,7 +450,7 @@ diagnostics() { if [ ! -s "${VARLIB}/ssh_host_rsa_key" ] ; then echo "The host key as prepared for SSH (${VARLIB}/ssh_host_rsa_key) is missing or empty!" else - if [ $(stat -c "${VARLIB}/ssh_host_rsa_key") != 600 ] ; then + if [ $(stat -c '%a' "${VARLIB}/ssh_host_rsa_key") != 600 ] ; then echo "Permissions seem wrong for ${VARLIB}/ssh_host_rsa_key -- should be 0600 !" fi