summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-07-31 21:29:25 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-07-31 21:29:25 -0400
commit0b5404f0488d5ea642aec2e92988740af23d820d (patch)
tree889270523c2fab727f5c6191c09c1088370c3160 /src
parent7c8dbbd047ba2d9f7f9669a28b307195dbe4716a (diff)
fixed broken invocation of stat
Diffstat (limited to 'src')
-rwxr-xr-xsrc/monkeysphere-server2
1 files changed, 1 insertions, 1 deletions
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