From nobody Wed Dec 4 08:26:42 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y39bk5l3Vz5gBx8 for ; Wed, 04 Dec 2024 08:26:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y39bk1VHHz4n2v for ; Wed, 4 Dec 2024 08:26:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733300802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ALZ/KkOi6NgegePvzDRuigoCrFr7DKZKkBPSRiHVDUc=; b=A5Z1+JwWABpsr1qZaoVNmnK9zw28uCgEzDDuRVPrk3uycxFd/73pCved800DtoWveRa/71 xmmHrMOhJyr2FIPtLWCDGgI1QwRy/Ex1uF7Zr0IBt/OpYbJXlZzk1UcbIjJNfKT5axYl9w sT3/HWjGRxrdDY6c1NDz+uFFrDIrUQpQ9BiM6QVOw+BJ6JF47lGyUflz7KC5y8GxUqQOUg 2p5KB6V0pQHRpNJnSGlHjUntRLfuSe5qYhpfi603T5/2IratqEw3kv0F8ijetdD45ejrkc MIXF4NG7txfumMxKq8QKyAWAhGEyMYzuh+n4H3lTzGLeTGVL+cyFXphHhhBrJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733300802; a=rsa-sha256; cv=none; b=YqhvuMOa0LYeIbInTEYzV2jVS8mfHslx8KPDIE9kCIWVjGJPLPtasUwMtf2DUxF3sFUCUi 7plCghP8wun5+Ln+WYwH51h0u/w72XKRfF9akPNgHc5bdquN9GmUo7OTYee585sVkKgIr9 7EZfkuwHxhprMKOaCu7VmXXE8pd9YqeU6NsOpxgK+Bn0FVxa7VeYd69uNuLOk8qUp7tYgt 1y7iU7BmAXlHw9YKdz2Gmp290neZLaNaUa5l7ci44dA9eTCAJASnHbN9Xx2LcpUgcU4VmQ 3lnXas3MtnF7bKw4LKUDmUwL8G8anpbbHWR2xwv183GCGS43E4aOYemLpwGeig== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y39bk0ptjz10hL for ; Wed, 4 Dec 2024 08:26:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4B48Qfsk020714 for ; Wed, 4 Dec 2024 08:26:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B48QfBC020712 for bugs@FreeBSD.org; Wed, 4 Dec 2024 08:26:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 181636] mtree(8): mtree -U does not fix ownership of symbolic links Date: Wed, 04 Dec 2024 08:26:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 9.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlduran@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D181636 Jose Luis Duran changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlduran@FreeBSD.org --- Comment #4 from Jose Luis Duran --- 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.=