On Thu, Dec 14, 2006 at 10:07:30AM +0200, Sergey Poznyakoff wrote: > Daniel Macks <[EMAIL PROTECTED]> 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? dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks
