--- ./src/lxc/lxc-ls.in.orig 2013-02-09 17:22:38.811308444 +0000 +++ ./src/lxc/lxc-ls.in 2013-02-09 17:25:00.665833613 +0000 @@ -87,7 +87,7 @@ containers="" if [ ! -z "$directory" ]; then - containers=$(find $directory -mindepth 1 -maxdepth 1 -type d -printf "%f\n" 2>/dev/null) + containers=$(find $directory -mindepth 1 -maxdepth 1 -type d -print 2>/dev/null | sed 's:.*/::') fi if [ -z "$containers" ]; then