Package: vzctl
Version: 3.0.23-8
Severity: important
Tags: patch

vzmigrate has two bugs that prevent it from working correctly on
squeeze:

1.) It should specify /bin/bash instead of /bin/sh in the shebang
otherwise there is an error with export complaining that "-c" is not a
valid variable name.

2.) It should use "echo -ne" instead of "printf" as it passes text as
separate arguments and printf only prints the first

I've attached a patch which should be applied to vzctl-3.0.23/bin/vzmigrate.in.
I'm not familiar with how to create patches correctly, so hopefully it
works.

Thanks,
James Stanley

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-openvz-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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
1c1
< #!/bin/bash
---
> #!/bin/sh
128c128
<               echo -ne "Error: " $@"\n" >&2
---
>               printf "Error: " $@"\n" >&2
131c131
<               echo -ne $@"\n"
---
>               printf $@"\n"
134c134
<               echo -ne "   " $@"\n"
---
>               printf "   " $@"\n"

Reply via email to