misc/181636: mtree -U does not fix ownership of symbolic links

Olivier olivier.nicole at cs.ait.ac.th
Thu Aug 29 03:10:01 UTC 2013


>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 at 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:


More information about the freebsd-bugs mailing list