bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] bug: extracting permissions


From: Toby Peterson
Subject: Re: [Bug-tar] bug: extracting permissions
Date: Thu, 6 Jan 2005 07:03:14 -0500

On 06 Jan 2005, at 06.53, Sergey Poznyakoff wrote:

Toby Peterson <address@hidden> wrote:

This is a *very* simple test case. Compare the output of tar -tvf, and
the first and second ls -l commands.

#!/bin/sh

TAR="tar --no-same-permissions"

Toby, --no-same-permissions is not supposed to disable restoring
of directory metadata from the archive. Moreover, this option
does not work for an ordinary user: it is intended for root use
only. From `info tar':

`--no-same-permissions'
     When extracting an archive, subtract the user's umask from files
     from the permissions specified in the archive.  This is the
     default behavior for ordinary users; this option has an
     effect only for the superuser.

(I agree that the option name is rather misleading)

OK, so this was changed (corrected) between 1.13.25 and 1.14? I'm simply trying to investigate the cause of the new behavior.

To avoid restoring directory metadata use --no-overwrite-dir option.

That works, thanks!

- Toby





reply via email to

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