Skip to content
Browse files

lxc-ls: Use readlink on $directory

lxc-ls was failing in cases where $directory is a symlink to another
directory. Instead have $directory be generated from the output of
readlink -f "$lxc_path".

Signed-off-by: Stéphane Graber <>
  • Loading branch information...
1 parent 4b41b26 commit 1a99ae74cfad5fb0e52a30ca2be5a2091aad8748 @stgraber stgraber committed with Serge Hallyn Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxc/
2 src/lxc/
@@ -70,7 +70,7 @@ get_parent_cgroup()
+directory=$(readlink -f "$lxc_path")
for i in "$@"; do
case $i in

0 comments on commit 1a99ae7

Please sign in to comment.
Something went wrong with that request. Please try again.