# Use the side effect of find(1).
fs_fix_unionfs_image_if_hidden ()
{
- local needlepath needlepath_next
+ local needlepath needlepath_cur needlepath_next
needlepath=$1
+ needlepath_cur=$needlepath
while :
do
- [ -e "$needlepath" ] && return
- find -dx "$needlepath" -maxdepth 0 > /dev/null 2>&1 || :
- needlepath_next=`dirname "$needlepath"`
- [ "x$needlepath" = "x$needlepath_next" ] && break
- needlepath=$needlepath_next
+ [ -e "$needlepath_cur" ] && return
+ find -dx "$needlepath_cur" -maxdepth 0 > /dev/null 2>&1 || :
+ needlepath_next=`dirname "$needlepath_cur"`
+ [ "x$needlepath_cur" = "x$needlepath_next" ] && break
+ needlepath_cur=$needlepath_next
done
[ -e "$needlepath" ] && return
message_echo "ERROR: Lost mandatory file, probably due to the bug of unionfs: $needlepath" >&2
MYVERSION=4.0.1
COMPATIBLE_VERSIONS='^(4\.[0]\.[0-1])$'
# Template for development versions
- MYVERSION=4.0.0+toward_4.0.1_20180711013924
+ MYVERSION=4.0.0+toward_4.0.1_20180711022824
COMPATIBLE_VERSIONS='^(4\.[0]\.[0]|4\.[0]\.[0]+(|\+toward_4\.[0]\.[1]+_[0-9]+))$'
}