]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
chown: fix ownership format string
authorMurphy Zhou <jencce.kernel@gmail.com>
Mon, 25 Apr 2022 08:20:51 +0000 (16:20 +0800)
committerZorro Lang <zlang@kernel.org>
Tue, 26 Apr 2022 18:54:00 +0000 (02:54 +0800)
commit0fd8e26141f50aaba8c6d3e058149a499317e445
tree5fdbe40e800215bee5bf6e3b183e6ae3447837b3
parent31c01ce18f733117bda68870d42d78a88b93c97d
chown: fix ownership format string

After coreutils rebasing to 9.1, chown(1) behavior changes:
"
   chown and chroot now warn about usages like "chown root.root f",
   which have the nonstandard and long-obsolete "." separator that
   causes problems on platforms where user names contain ".".
   Applications should use ":" instead of ".".
"

https://lwn.net/Articles/891574/

With this behavior change, old format of ownership string will cause
warning like this:
"
+chown: warning: '.' should be ':': '1000.1000'
+.chown: warning: '.' should be ':': '1100.1100'
+.chown: warning: '.' should be ':': '1200.1200'
+.chown: warning: '.' should be ':': '1300.1300'
+.chown: warning: '.' should be ':': '1400.1400'
"

The new format works fine with old versions of coreutils.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/dump
tests/generic/099
tests/generic/237
tests/generic/318
tests/generic/380
tests/generic/597
tests/generic/598