summaryrefslogtreecommitdiff
path: root/ctdb/config/statd-callout
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie.(none)>2008-02-07 15:33:52 +1100
committerRonnie Sahlberg <sahlberg@ronnie.(none)>2008-02-07 15:33:52 +1100
commitf992455ce343cc8babc2115418f8f0a06c44e290 (patch)
tree2e04f06f4be8ace590a026debc0e0993e2787285 /ctdb/config/statd-callout
parent35ee7d49995e0ba448c330f3d9249afecf521176 (diff)
downloadsamba-f992455ce343cc8babc2115418f8f0a06c44e290.tar.gz
dont use an absolute path for the basename command
(This used to be ctdb commit 2519d30162fa3e9d5d81efd374543a2e4dfce545)
Diffstat (limited to 'ctdb/config/statd-callout')
-rwxr-xr-xctdb/config/statd-callout12
1 files changed, 6 insertions, 6 deletions
diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout
index b00aeba7a2d..282484ab6b3 100755
--- a/ctdb/config/statd-callout
+++ b/ctdb/config/statd-callout
@@ -29,7 +29,7 @@ case "$1" in
# the callout does not tell us to which ip the client connected
# so we must add it to all the ips that we serve
for f in `/bin/ls $CTDB_BASE/state/statd/ip/*`; do
- ip=`/bin/basename $f`
+ ip=`basename $f`
[ -d $STATD_SHARED_DIRECTORY/$ip ] || /bin/mkdir $STATD_SHARED_DIRECTORY/$ip
/bin/touch $STATD_SHARED_DIRECTORY/$ip/$2
done
@@ -38,7 +38,7 @@ case "$1" in
# the callout does not tell us to which ip the client connected
# so we must add it to all the ips that we serve
for f in `/bin/ls $CTDB_BASE/state/statd/ip/*`; do
- ip=`/bin/basename $f`
+ ip=`basename $f`
/bin/rm -f $STATD_SHARED_DIRECTORY/$ip/$2
done
;;
@@ -86,10 +86,10 @@ case "$1" in
# copy all monitored clients on this node to the local lockmanager
for f in `/bin/ls $CTDB_BASE/state/statd/ip/* 2>/dev/null`; do
- ip=`/bin/basename $f`
+ ip=`basename $f`
[ -d $STATD_SHARED_DIRECTORY/$ip ] && [ -x /usr/bin/smnotify ] && {
for g in `/bin/ls $STATD_SHARED_DIRECTORY/$ip/* 2>/dev/null`; do
- client=`/bin/basename $g`
+ client=`basename $g`
touch /var/lib/nfs/statd/sm/$client
done
}
@@ -127,10 +127,10 @@ case "$1" in
# probability that the client will accept the statd notify packet and
# not just ignore it.
for f in `/bin/ls $CTDB_BASE/state/statd/ip/* 2>/dev/null`; do
- ip=`/bin/basename $f`
+ ip=`basename $f`
[ -d $STATD_SHARED_DIRECTORY/$ip ] && [ -x /usr/bin/smnotify ] && {
for g in `/bin/ls $STATD_SHARED_DIRECTORY/$ip/* 2>/dev/null`; do
- client=`/bin/basename $g`
+ client=`basename $g`
# /bin/rm -f $g
# send out notifications from the "correct" address
# (the same addresse as where the lock was taken out