git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a0fa6
)
skip directories containing macros (%) in ctdb_check_directories_probe
author
Michael Adam
<obnox@samba.org>
Mon, 15 Dec 2008 17:21:37 +0000
(18:21 +0100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 15 Dec 2008 22:51:36 +0000
(09:51 +1100)
This prevents the monitor action of 50.samba from failing
on e.g. a typical [homes] service with "path = /home/%S" .
Michael
config/functions
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index 2c744d0c068706621f577911220cf916a0227667..c6295c3f0be8ccb2d2b6bb4332df682d5d46ec8e 100644
(file)
--- a/
config/functions
+++ b/
config/functions
@@
-154,6
+154,7
@@
ctdb_check_directories_probe() {
wait_dirs="$*"
[ -z "$wait_dirs" ] && return;
for d in $wait_dirs; do
+ ( echo $d | grep -q '%' ) && continue
[ -d $d ] || return 1
done
return 0