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: Sergey Poznyakoff
Subject: Re: [Bug-tar] bug: extracting permissions
Date: Thu, 06 Jan 2005 13:53:45 +0200

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)

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

Regards,
Sergey
          




reply via email to

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