From: Enrico Scholz Date: Sat, 31 Dec 2005 10:58:18 +0000 (+0000) Subject: isDirectoryEmpty(): really ignore 'lost+found' by checking against the full X-Git-Tag: version_0_30_210~48 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f2fdb670dbb327fb197d36ec17828c7ae35471e;p=util-vserver.git isDirectoryEmpty(): really ignore 'lost+found' by checking against the full 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 --- diff --git a/util-vserver/scripts/functions b/util-vserver/scripts/functions index 3396474..32afcd3 100644 --- a/util-vserver/scripts/functions +++ b/util-vserver/scripts/functions @@ -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