Hi Ignace Thanks for the patch. Applied and soon to be uploaded.
Best regards, // Ola On Thu, Dec 10, 2009 at 12:37:14PM +0100, Ignace Mouzannar wrote: > Package: vzctl > Version: 3.0.23-8 > Severity: normal > Tags: patch > > Hello, > > When trying vzctl's bash completion with an unprivileged user, the > completion outputs "This program can only be run under root." to > stderr. > As a result, the command line becomes unusable: the user must then ^C > to re-enter the line making sure not to use <TAB>. > > --------------8<--------------8<-------------- > bosta:~$ sudo vzctl stop This program can only be run under root. > This program can only be run under root. > ^C > bosta:~$ sudo vzctl create This program can only be run under root. > 101 ^C > bosta:~$ sudo vzctl set 101 --ipdel This program can only be run under root. > all ^C > --------------8<--------------8<-------------- > > This output comes from the call of vzlist(8) in > /etc/bash_completion.d/vzctl.sh. > > While vzctl(8) should only be run as root, it should not offer a > "false completion". > > I have attached a patch testing the user's UID before using this > vzlist(8) for the completion. > > Kind regards, > Ignace Mouzannar > > -- System Information: > Debian Release: squeeze/sid > APT prefers testing > APT policy: (990, 'testing'), (500, 'unstable'), (99, 'stable') > Architecture: i386 (i686) > > Kernel: Linux 2.6.26-2-openvz-686 (SMP w/2 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages vzctl depends on: > ii iproute 20090324-1 networking and traffic control > too > ii libc6 2.10.2-2 GNU C Library: Shared libraries > ii vzquota 3.0.11-2 server virtualization solution - > q > > Versions of packages vzctl recommends: > ii rsync 3.0.6-1 fast remote file copy program > (lik > > vzctl suggests no packages. > > -- no debconf information -- --------------------- Ola Lundqvist --------------------------- / [email protected] Annebergsslingan 37 \ | [email protected] 654 65 KARLSTAD | | http://inguza.com/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

