[Bug 1006332] Re: lxc-ls fails if name of a container starts with '-'
Serge Hallyn
1006332 at bugs.launchpad.net
Mon Jun 11 22:08:56 UTC 2012
** Description changed:
+ ============== SRU Justification =============
+ Impact: lxc-ls fails when container names start with a dash ('-')
+ Development fix: when calling 'ls' from lxc-ls, specify -- before the container name to make clear that the next argument is a file name
+ Stable fix: same as Development fix.
+ Test case:
+ sudo lxc-create -t ubuntu -n -p2
+ sudo lxc-start -n -p2 -d
+ sudo lxc-ls
+ the lxc-ls will show ls error messages without the patch
+ Regression potential: none
+
+ ==============================================
+
A script created a container which name starts with a '-' ( -lo-
quantal-i386 in this case )
Then calls to lxc-ls and lxc-list fail with:
$ lxc-ls
-lo-quantal-i386
ls: invalid option -- '-'
Try `ls --help' for more information.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lxc 0.8.0~rc1-4ubuntu10
ProcVersionSignature: Ubuntu 3.4.0-3.8-generic 3.4.0
Uname: Linux 3.4.0-3-generic x86_64
ApportVersion: 2.1-0ubuntu1
Architecture: amd64
Date: Wed May 30 12:30:17 2012
ProcEnviron:
- TERM=xterm
- PATH=(custom, user)
- LANG=en_US.UTF-8
- SHELL=/bin/bash
+ TERM=xterm
+ PATH=(custom, user)
+ LANG=en_US.UTF-8
+ SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to quantal on 2012-01-31 (119 days ago)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1006332
Title:
lxc-ls fails if name of a container starts with '-'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1006332/+subscriptions
More information about the Ubuntu-server-bugs
mailing list