[Libguestfs] [PATCH] Improve errors from tar-in/tgz-in commands (RHBZ#591155 RHBZ#591250).

Richard W.M. Jones rjones at redhat.com
Thu May 13 10:31:20 UTC 2010


On Thu, May 13, 2010 at 10:26:19AM +0100, Richard W.M. Jones wrote:
> -  if (asprintf_nowarn (&cmd, "tar -C %R -%sxf -",
> -                       dir, filter) == -1) {
> +  if (asprintf_nowarn (&cmd, "tar -C %R -xf - 2> %s",
> +                       dir, filter, error_file) == -1) {

The patch got mangled here somehow.  This should read:

-  if (asprintf_nowarn (&cmd, "tar -C %R -%sxf -",
-                       dir, filter) == -1) {
+  if (asprintf_nowarn (&cmd, "tar -C %R -%sxf - 2> %s",
+                       dir, filter, error_file) == -1) {

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the Libguestfs mailing list