extraneous %s in error message

View: New views
4 Messages — Rating Filter:   Alert me  

extraneous %s in error message

by Denis Excoffier-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I report here a minor bug in the last tar.

jupiter% tar --version | head -1
tar (GNU tar) 1.22.90
jupiter% tar tvf /dev/null --owner=no-such-owner /etc/passwd
tar: no-such-owner: Invalid owner
tar: Error is not recoverable: exiting now
jupiter% tar tvf /dev/null --group=no-such-group /etc/passwd
tar: no-such-group: %s: Invalid group
tar: Error is not recoverable: exiting now
jupiter%

The second error message is probably wrong (extraneous `%s: ').

By the way, it seems to me that it should be possible to have
these commands (above) succeed. After all, the tar file is not
dedicated to local consumption: the local existence or
nonexistence of any group or owner is not sufficient to forbid
the creation of such a tar file.

Regards.

Denis Excoffier.




Re: extraneous %s in error message

by Denis Excoffier-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Le 15 sept. 2009 à 19:32, Denis Excoffier a écrit :

> jupiter% tar tvf /dev/null --owner=no-such-owner /etc/passwd

It should have been

jupiter% tar cvf /dev/null etc.

instead. Also for the second line. Sorry for that.




Re: extraneous %s in error message

by Tim Kientzle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Denis Excoffier wrote:
>
> jupiter% tar tvf /dev/null --owner=no-such-owner /etc/passwd
> tar: no-such-owner: Invalid owner
> tar: Error is not recoverable: exiting now
...
> By the way, it seems to me that it should be possible to have
> these commands (above) succeed. After all, the tar file is not
> dedicated to local consumption: the local existence or
> nonexistence of any group or owner is not sufficient to forbid
> the creation of such a tar file.

Tar format needs to store both the numeric UID/GID
and the user/group name.  If the name cannot be
looked up in the local system database, it has
no way to generate a suitable ID.

Cheers,

Tim



Re: extraneous %s in error message

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Denis Excoffier <3.1416@...> ha escrit:

> The second error message is probably wrong (extraneous `%s: ').

Thanks for reporting. I fixed it in the repository.

Regards,
Sergey