summaryrefslogtreecommitdiffstats
path: root/main/lxc/bb-find.patch
blob: 663a81e070a60d72579d84ad15f9439bc5a27b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./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