[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Warning from tar via dpkg

From: Daniel Macks
Subject: Re: [Bug-tar] Warning from tar via dpkg
Date: Thu, 14 Dec 2006 14:24:09 -0500
User-agent: Mutt/

On Thu, Dec 14, 2006 at 10:07:30AM +0200, Sergey Poznyakoff wrote:
> Daniel Macks <address@hidden> wrote:
> > dpkg-deb uses tar internally to create a .deb archive:
> > 
> >   execlp(TAR,"tar","-cf", "-", "-T", "-", "--null", "--no-recursion", 
> > (char*)0);
> > 
> > When I upgraded my tar from 1.15.1 to 1.16.1, that command started
> > giving a warning:
> > 
> >   tar: -: file name read contains nul character
> The order of options is important in this case.  Tar first reads file
> names from stdin (which appears to be null-separated), and only after
> this does it see the --null option.  Place this option before -T and it
> will remain silent:
> execlp(TAR,"tar","-cf", "-", "--null", "-T", "-", "--no-recursion", (char*)0);

Great thanks! Is that syntax okay with older tar versions too, or do I
need to make sure this new execlp call only sees tar>=1.16 or so?


Daniel Macks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]