Date: Tue, 29 Aug 1995 23:44:25 -0500 From: Daniel Ortmann <ortmann@localhost.nodak.edu> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/714: tar not restoring permissions properly Message-ID: <199508300444.XAA00310@localhost.nodak.edu> Resent-Message-ID: <199508300450.VAA09687@freefall.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
>Number: 714 >Category: bin >Synopsis: tar is not restoring permissions...possibly when the sticky but is set >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 29 21:50:01 PDT 1995 >Last-Modified: >Originator: Daniel Ortmann >Organization: North Dakota State University >Release: FreeBSD 2.0-BUILT-19950623 i386 >Environment: No special environment is needed to reproduce this bug. >Description: When a directory has the sticky bit set and it is tar'red, sent through the standard output, the output is caught in a subshell, and untar'red in a different directory ... ... then the permissions are restored incorrectly on the directory. I noticed while creating a backup root partition. >How-To-Repeat: $ mkdir asdf fdsa $ chmod 1777 asdf $ tar cf - asdf | ( cd fdsa ; tar xvf - ) $ /bin/ls -l fdsa drwx-----T 2 ortmann wheel 512 Aug 29 23:43 asdf >Fix: I do not know of a fix for this problem. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508300444.XAA00310>