From: Pádraig Brady
Date: Thu, 11 Dec 2025 20:17:20 +0000 (+0000)
Subject: tests: mv: ensure ownership preserved when copying
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a3c75c6d87f1bd12972b1de7ee250a8f633de63;p=thirdparty%2Fcoreutils.git
tests: mv: ensure ownership preserved when copying
* tests/mv/meta-to-xpart.sh: Add new test.
* tests/local.mk: Reference new test.
---
diff --git a/tests/local.mk b/tests/local.mk
index 955de4e22a..f84dd4f419 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -135,6 +135,7 @@ all_root_tests = \
tests/mkdir/smack-root.sh \
tests/mv/hardlink-case.sh \
tests/mv/sticky-to-xpart.sh \
+ tests/mv/meta-to-xpart.sh \
tests/mv/mv-special-2.sh \
tests/rm/fail-2eperm.sh \
tests/rm/no-give-up.sh \
diff --git a/tests/mv/meta-to-xpart.sh b/tests/mv/meta-to-xpart.sh
new file mode 100755
index 0000000000..c9d3b7aa7a
--- /dev/null
+++ b/tests/mv/meta-to-xpart.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# A cross-partition move of a file should maintain user and permissions
+
+# Copyright (C) 2025 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see