From owner-freebsd-bugs Tue Aug 29 21:50:13 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA09700 for bugs-outgoing; Tue, 29 Aug 1995 21:50:13 -0700 Received: (from gnats@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA09687 ; Tue, 29 Aug 1995 21:50:02 -0700 Resent-Date: Tue, 29 Aug 1995 21:50:02 -0700 Resent-Message-Id: <199508300450.VAA09687@freefall.FreeBSD.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, ortmann@localhost.nodak.edu Received: from localhost.nodak.edu (ndts3.pt09.ndsu.NoDak.edu [134.129.108.141]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id VAA09597 for ; Tue, 29 Aug 1995 21:46:45 -0700 Received: (from ortmann@localhost) by localhost.nodak.edu (8.6.12/8.6.9) id XAA00310; Tue, 29 Aug 1995 23:44:25 -0500 Message-Id: <199508300444.XAA00310@localhost.nodak.edu> Date: Tue, 29 Aug 1995 23:44:25 -0500 From: Daniel Ortmann Reply-To: ortmann@localhost.nodak.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/714: tar not restoring permissions properly Sender: bugs-owner@freebsd.org Precedence: bulk >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: