From: Ronnie Sahlberg Date: Fri, 1 Jun 2007 03:26:14 +0000 (+1000) Subject: it is -f not -x to check if a file exists X-Git-Tag: tevent-0.9.20~348^2~2621^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d0fc8e4ff9954465817e90f91038b05fab63db;p=thirdparty%2Fsamba.git it is -f not -x to check if a file exists (This used to be ctdb commit 52457d5e811f91c051ce0fa32739667a1d21862a) --- diff --git a/ctdb/tools/events b/ctdb/tools/events index da61b8b8e8c..20c7653bb2a 100755 --- a/ctdb/tools/events +++ b/ctdb/tools/events @@ -76,7 +76,7 @@ case $cmd in recovered) # if we have taken or released any ips we must send out # statd notifications to recover lost nfs locks - [ -x /etc/ctdb/statd-callout ] && [ -x /etc/ctdb/changed_ips ] && { + [ -x /etc/ctdb/statd-callout ] && [ -f /etc/ctdb/changed_ips ] && { /etc/ctdb/statd-callout notify & } >/dev/null 2>&1