From nobody@FreeBSD.org  Fri Feb 15 22:37:06 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8881C16A419
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Feb 2008 22:37:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7B5C813C442
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Feb 2008 22:37:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1FMYiaT066129
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Feb 2008 22:34:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1FMYhrs066128;
	Fri, 15 Feb 2008 22:34:43 GMT
	(envelope-from nobody)
Message-Id: <200802152234.m1FMYhrs066128@www.freebsd.org>
Date: Fri, 15 Feb 2008 22:34:43 GMT
From: Alex Keda <admin@lissyara.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tar not restore (or not save) ACL
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120724
>Category:       bin
>Synopsis:       tar(1) not restore (or not save) ACL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 15 22:40:02 UTC 2008
>Closed-Date:    Fri Sep 05 05:49:38 UTC 2008
>Last-Modified:  Fri Sep  5 06:10:01 UTC 2008
>Originator:     Alex Keda
>Release:        6.2
>Organization:
USSR
>Environment:
FreeBSD xxi.moskb.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
tar not restore or not save ACL when create/restore archive...
>How-To-Repeat:
xxi# mkdir test_dir
xxi# setfacl -m u:lissyara:rwx test_dir
xxi# setfacl -m u:akeda:rwx test_dir
xxi# setfacl -m u:mroshin:rwx test_dir
xxi# setfacl -m g:bank:rwx test_dir
xxi# getfacl test_dir
#file:test_dir
#owner:0
#group:10002
user::rwx
user:lissyara:rwx
user:akeda:rwx
user:mroshin:rwx
user:vshvachy:rwx
group::---
group:bank:rwx
mask::rwx
other::---
xxi# ll
total 4
drwxrwx---+ 2 root  domain users   512B 16 &#1092;&#1077;&#1074; 01:14 test_dir
xxi#

xxi# tar --create --file=- test_dir | (cd ../extract/; tar -epf - )

xxi# getfacl ../extract/test_dir
#file:../extract/test_dir
#owner:0
#group:10002
user::rwx
user:vshvachy:rwx
group::---
mask::rwx
other::---
xxi# ll
total 4
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Feb 16 00:36:59 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120724 

From: Tim Kientzle <kientzle@freebsd.org>
To: bug-followup@freebsd.org, admin@lissyara.su
Cc:  
Subject: Re: bin/120724: tar(1) not restore (or not save) ACL
Date: Sun, 30 Mar 2008 17:08:27 -0700

 Regarding PR bin/120724:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=120724
 
 I haven't been able to reproduce this problem here;
 ACLs seem to be handled correctly for me.  However,
 I have not yet tried it with the old FreeBSD 6.2
 version of bsdtar.
 
 I have a couple of questions:
 
 1) Your example uses "tar -epf -" to extract the
 archive, but bsdtar does not have a -e option.
 Is this just a mistake in copying?
 
 2) Have you tried this example on FreeBSD 6.3?
 
 3) Have you tried this with the version of bsdtar
 installed from the port "archivers/libarchive"?
 (That version is much newer than the version in
 6.2 or 6.3.)
 
 4) Could you send me a copy of the archive created?
 I would like to examine that and see whether the
 problem was in archiving or extracting.
 
 
 Thank you,
 
 Tim Kientzle
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Fri Sep 5 05:48:53 UTC 2008 
State-Changed-Why:  
I've been unable to reproduce this and have received 
no response from the original submitter. 
I'll re-open if I find any reason to believe this is 
still a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120724 

From: Alex Keda <admin@lissyara.su>
To: bug-followup@FreeBSD.org, kientzle@FreeBSD.org
Cc:  
Subject: Re: bin/120724: tar(1) not restore (or not save) ACL
Date: Fri, 05 Sep 2008 10:09:08 +0400

 sorry - I do not see previous mail =(
 ==========
 yes - 'e' - mistake, 'x' option used
 I do not have 6.3, on 6.2 - it not work
 But, I have 7.0 - and it work.
 (group 'bank' not set first time, because it Active Directory group 
 trough winbindd)
 
 backup1# mkdir test_dir
 backup1# setfacl -m u:lissyara:rwx test_dir
 backup1# setfacl -m u:akeda:rwx test_dir
 backup1# setfacl -m u:mroshin:rwx test_dir
 backup1# setfacl -m g:bank:rwx test_dir
 setfacl: g:bank:rwx: Invalid argument
 backup1# setfacl -m g:bank:rwx test_dir
 backup1# getfacl test_dir
 # file: test_dir
 # owner: root
 # group: wheel
 user::rwx
 user:lissyara:rwx
 user:akeda:rwx
 user:mroshin:rwx
 group::r-x
 group:bank:rwx
 mask::rwx
 other::r-x
 backup1# ll | grep test
 drwxrwxr-x+ 2 root  wheel      512B  5 сен 10:02 test_dir
 backup1# tar --create --file=- test_dir | (mkdir test2; cd test2; tar 
 -xpf - )
 backup1# ll test2
 total 4
 drwxrwxr-x+ 2 root  wheel   512B  5 сен 10:02 test_dir
 backup1# uname -a
 FreeBSD backup1.moskb.local 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Jun 18 
 15:21:59 MSD 2008     
 lissyara@backup1.moskb.local:/usr/obj/usr/src/sys/GENERIC  i386
 backup1# getfacl test2/test_dir/
 # file: test2/test_dir/
 # owner: root
 # group: wheel
 user::rwx
 user:lissyara:rwx
 user:akeda:rwx
 user:mroshin:rwx
 group::r-x
 group:bank:rwx
 mask::rwx
 other::r-x
 backup1#  
>Unformatted:
