functions: when checking for a directory also check whether it can be accessed.
authorMichael Adam <obnox@samba.org>
Fri, 26 Mar 2010 15:40:00 +0000 (16:40 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 11 May 2010 09:29:45 +0000 (11:29 +0200)
Thanks to "waKKu" on irc for this improvement.

Michael

config/functions

index 2c78b396f88f102c687cdb9188e63375bc77ccdb..73ae0c0fdf8751a8d74cd48f3825df9d0690799d 100755 (executable)
@@ -162,7 +162,7 @@ ctdb_check_directories_probe() {
                continue
                ;;
            *)
-               [ -d "$d" ] || return 1
+               [ -d "${d}/." ] || return 1
        esac
     done
 }