[Top][All Lists]

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

tar does not strip trailing slashes before mkdir()

From: Marcus Brinkmann
Subject: tar does not strip trailing slashes before mkdir()
Date: Thu, 4 Jan 2001 21:41:21 +0100
User-agent: Mutt/1.1.4i


the latest tar 1.13.18 does not work correctly on the Hurd. It fails with
an EINVAL from mkdir when trying to create "foo/" when extracting some
archives (which contain this pathname).

Now, POSIX doesn't say that trailing slashes can be added to arbitrary
pathnames, it says they can if the pathname refers to a directory.
But until it is created, the pathname foo/ doesn't refer to a directory
(instead, it is inexistant). The Hurd is strict about this, and refuses
to create 'foo/'.

My guess is that this is triggered by this change:

2000-10-23  Paul Eggert  <eggert@twinsun.com>

        (extract_archive): [...] Do not remove trailing / and /.
        from file names.

Please revert this change, so tar can extract archives on GNU systems.


`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

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