From 8f2fdb670dbb327fb197d36ec17828c7ae35471e Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sat, 31 Dec 2005 10:58:18 +0000 Subject: [PATCH] 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 --- util-vserver/scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.1.5