Date: Wed, 04 Dec 2024 08:26:42 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 181636] mtree(8): mtree -U does not fix ownership of symbolic links Message-ID: <bug-181636-227-R4zWR4pJQs@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-181636-227@https.bugs.freebsd.org/bugzilla/> References: <bug-181636-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D181636 Jose Luis Duran <jlduran@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlduran@FreeBSD.org --- Comment #4 from Jose Luis Duran <jlduran@FreeBSD.org> --- Created attachment 255615 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255615&action= =3Dedit Change modification time for symlinks The bug is no longer present as reported, however the modification times are not changed. The fix might be as simple as utimes(2) -> lutimes(2), but it= has to be upstreamed (and accepted) first: # mkdir /tmp/mtree # cd /tmp/mtree # mkdir dir # touch file # ln -s dir dirlink # ln -s file filelink # chown -R 206:30 . # ls -aln total 27 drwxr-xr-x 3 206 30 6 Dec 4 12:00 . drwxrwxrwt 4 0 0 4 Dec 4 12:00 .. drwxr-xr-x 2 206 30 2 Dec 4 12:00 dir lrwxr-xr-x 1 206 30 3 Dec 4 12:00 dirlink -> dir -rw-r--r-- 1 206 30 0 Dec 4 12:00 file lrwxr-xr-x 1 206 30 4 Dec 4 12:00 filelink -> file # cat ../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=3Dfile uid=3D4096 gid=3D30 mode=3D0755 nlink=3D1 flags=3Dnone . type=3Ddir gid=3D5030 nlink=3D3 time=3D1377745075.000000000 dirlink type=3Dlink gid=3D5030 time=3D1377745073.000000000 link=3Dd= ir file gid=3D5030 mode=3D0644 size=3D0 time=3D1377743843.000000000 filelink type=3Dlink uid=3D206 time=3D1377743896.000000000 link=3Dfi= le # ./dir dir type=3Ddir gid=3D5030 nlink=3D2 time=3D1377745068.000000000 # ./dir .. # mtree -F freebsd9 -U -f ../mtree.file mtree: Adding -i to -U for FreeBSD compatibility mtree: Adding -t to -U for FreeBSD compatibility ...(omitted for brevity) # ls -aln total 27 drwxr-xr-x 3 4096 5030 6 Aug 28 2013 . drwxrwxrwt 4 0 0 6 Dec 4 12:00 .. drwxr-xr-x 2 4096 5030 2 Aug 28 2013 dir lrwxr-xr-x 1 4096 5030 3 Dec 4 12:00 dirlink -> dir -rw-r--r-- 1 4096 5030 0 Aug 28 2013 file lrwxr-xr-x 1 206 30 4 Dec 4 12:00 filelink -> file --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-181636-227-R4zWR4pJQs>