fix bug #7152: check NFS-Shares, fails with to long path-names
authorMichael Adam <obnox@samba.org>
Tue, 23 Feb 2010 10:00:23 +0000 (11:00 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 23 Feb 2010 10:08:23 +0000 (21:08 +1100)
Thanks to Thomas Sesselmann <t.sesselmann@dkfz.de> .

Michael

config/events.d/60.nfs

index 2115d46e647d840d35715f51c81fcc16036c95e2..d4037926680f14829f180faacbf6c871a268baa0 100755 (executable)
@@ -84,7 +84,7 @@ case "$1" in
        # and that its directories are available
        [ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || {
            exportfs | grep -v '^#' | grep '^/' |
-           sed -e 's/[[:space:]]*[^[:space:]]*$//' |
+           sed -e 's/[[:space:]]\+[^[:space:]]*$//' |
            ctdb_check_directories
        } || exit $?