isDirectoryEmpty(): really ignore 'lost+found' by checking against the full
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 31 Dec 2005 10:58:18 +0000 (10:58 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 31 Dec 2005 10:58:18 +0000 (10:58 +0000)
path (https://savannah.nongnu.org/patch/?func=detailitem&item_id=4714,
patched by XeRO)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2233 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 3396474..32afcd3 100644 (file)
@@ -96,7 +96,7 @@ function isDirectoryEmpty
        
        for i in "$1"/*; do
            case "$i" in
-               (lost+found)
+               ($1/lost+found)
                    test "$ignore_lostfound" || exit 1
                    ;;
                (*)     echo "$i"; exit 1