From da5fae38141d179d29a7771fdbeff2c4142ca03f Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 1 Jul 2025 04:59:19 +0000 Subject: [PATCH] docs: Fix the chown command in macvtap-bridge.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When invoking the script chown shows a warning. chown: warning: '.' should be ':': ‘1000.1000’ From `info coreutils 'chown invocation'`. Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 (*note Standards conformance::) does not require support for that, but for backward compatibility GNU ‘chown’ supports ‘.’ so long as no ambiguity results, although it issues a warning and support may be removed in future versions. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire OWNER‘.’GROUP happens to identify a user whose name contains ‘.’. Signed-off-by: Wei Liu --- docs/macvtap-bridge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/macvtap-bridge.md b/docs/macvtap-bridge.md index 75173ee1c..5161eb7bb 100644 --- a/docs/macvtap-bridge.md +++ b/docs/macvtap-bridge.md @@ -18,7 +18,7 @@ tapindex=$(< /sys/class/net/macvtap0/ifindex) tapdevice="/dev/tap$tapindex" # Ensure that we can access this device -sudo chown "$UID.$UID" "$tapdevice" +sudo chown "$UID:$UID" "$tapdevice" # Use --net fd=3 to point to fd 3 which the shell has opened to point to the /dev/tapN device target/debug/cloud-hypervisor \