applied http://savannah.nongnu.org/patch/?func=detailitem&item_id=4814
[util-vserver.git] / util-vserver / scripts / functions
index 4a24bd5..8255487 100644 (file)
@@ -1,6 +1,6 @@
 # $Id$ --*- sh -*--
 
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+# Copyright (C) 2003,2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
 #  
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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
@@ -213,7 +213,7 @@ function colpanic
     if test -n "$_VS_ERRFILE"; then
        echo "$@" >>"$_VS_ERRFILE"
     else
-       colorize echo -n "$@" >&2
+       colorize error echo -n "$@" >&2
     fi
     echo