From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 29 03:10:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C06F7466 for ; Thu, 29 Aug 2013 03:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A121A2CC5 for ; Thu, 29 Aug 2013 03:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7T3A1eW092997 for ; Thu, 29 Aug 2013 03:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7T3A1Mr092996; Thu, 29 Aug 2013 03:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 29 Aug 2013 03:10:01 GMT Resent-Message-Id: <201308290310.r7T3A1Mr092996@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olivier Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BB4961DE for ; Thu, 29 Aug 2013 03:02:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 90D462C39 for ; Thu, 29 Aug 2013 03:02:33 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7T32W0A012448 for ; Thu, 29 Aug 2013 03:02:32 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7T32WTV012445; Thu, 29 Aug 2013 03:02:32 GMT (envelope-from nobody) Message-Id: <201308290302.r7T32WTV012445@oldred.freebsd.org> Date: Thu, 29 Aug 2013 03:02:32 GMT From: Olivier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/181636: mtree -U does not fix ownership of symbolic links X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 03:10:01 -0000 >Number: 181636 >Category: misc >Synopsis: mtree -U does not fix ownership of symbolic links >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 29 03:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Olivier >Release: 9.1-RELEASE-p4 >Organization: Asian Institute of Technology >Environment: FreeBSD banyan.cs.ait.ac.th 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #2: Fri Aug 23 10:03:44 ICT 2013 root@banyan.cs.ait.ac.th:/usr/obj/usr/src/sys/CSIM amd64 >Description: When using mtree -U to change the ownership and group of a hierarchy of users files, I found that symbolic links are not updated. In the following example, I tried various combination of -L and -P for mtree. 206:30 are the old ownership and group; 4096:5030 (on:csimstaff) are the new ones. >How-To-Repeat: # ls -lisag total 24 209553013 8 drwxr-xr-x 3 206 30 512 Aug 29 09:57 . 209553011 8 drwxr-xr-x 3 on csimstaff 512 Aug 29 09:40 .. 209553068 8 drwxr-xr-x 2 206 30 512 Aug 29 09:57 dir 209553074 0 lrwxr-xr-x 1 206 30 3 Aug 29 09:57 dirlink -> dir 209553065 0 -rw-r--r-- 1 206 30 0 Aug 29 09:37 file 209553067 0 lrwxr-xr-x 1 206 30 4 Aug 29 09:38 filelink -> file # mtree -U -f ../mtree.file . changed user expected 4096 found 206 modified gid expected 5030 found 30 modified dir changed user expected 4096 found 206 modified gid expected 5030 found 30 modified dirlink changed user expected 4096 found 206 modified gid expected 5030 found 30 modified file changed user expected 4096 found 206 modified gid expected 5030 found 30 modified # ls -lisag total 24 209553013 8 drwxr-xr-x 3 on csimstaff 512 Aug 29 09:57 . 209553011 8 drwxr-xr-x 3 on csimstaff 512 Aug 29 09:40 .. 209553068 8 drwxr-xr-x 2 on csimstaff 512 Aug 29 09:57 dir 209553074 0 lrwxr-xr-x 1 206 30 3 Aug 29 09:57 dirlink -> dir 209553065 0 -rw-r--r-- 1 on csimstaff 0 Aug 29 09:37 file 209553067 0 lrwxr-xr-x 1 206 30 4 Aug 29 09:38 filelink -> file # more ../mtree.file # user: on # machine: banyan.cs.ait.ac.th # tree: /home/java/on/Mtree/dir # date: Thu Aug 29 09:58:26 2013 # . /set type=file uid=4096 gid=30 mode=0755 nlink=1 flags=none . type=dir gid=5030 nlink=3 size=512 \ time=1377745075.000000000 dirlink type=link gid=5030 size=3 time=1377745073.000000000 \ link=dir file gid=5030 mode=0644 size=0 time=1377743843.000000000 filelink type=link uid=206 size=4 time=1377743896.000000000 \ link=file # ./dir dir type=dir gid=5030 nlink=2 size=512 \ time=1377745068.000000000 # ./dir . . # >Fix: >Release-Note: >Audit-Trail: >Unformatted: