From 5c55819cb0f99157b674f059f349cd2ca6708dc3 Mon Sep 17 00:00:00 2001
From: "Petr \"Stone\" Hracek" <phracek@redhat.com>
Date: Wed, 15 Jan 2025 10:57:33 +0100
Subject: [PATCH] Replace syntax of chown from '.' to ':' for Dockerfiles C10S
 and RHEL10

----
Some older scripts may still use '.' in place of the ':' separator. POSIX 1003.1-2001
(see [Standards conformance](http://www.gnu.org/software/coreutils/manual/html_node/Standards-conformance.html))
does not require support for that, but for backward compatibility GNU chown supports '.' so long as no ambiguity results.
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: Petr "Stone" Hracek <phracek@redhat.com>
---
 10.11/Dockerfile.c10s   | 2 +-
 10.11/Dockerfile.rhel10 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/10.11/Dockerfile.c10s b/10.11/Dockerfile.c10s
index d8b745a..730783c 100644
--- a/10.11/Dockerfile.c10s
+++ b/10.11/Dockerfile.c10s
@@ -44,7 +44,7 @@ RUN INSTALL_PKGS="policycoreutils rsync tar xz gettext hostname bind-utils groff
     rpm -V $INSTALL_PKGS && \
     /usr/libexec/mysqld -V | grep -qe "$MYSQL_VERSION\." && echo "Found VERSION $MYSQL_VERSION" && \
     dnf -y clean all --enablerepo='*' && \
-    mkdir -p /var/lib/mysql/data && chown -R mysql.0 /var/lib/mysql && \
+    mkdir -p /var/lib/mysql/data && chown -R mysql:0 /var/lib/mysql && \
     test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)"
 
 # Get prefix path and path to scripts rather than hard-code them in scripts
diff --git a/10.11/Dockerfile.rhel10 b/10.11/Dockerfile.rhel10
index 9fee464..27c3814 100644
--- a/10.11/Dockerfile.rhel10
+++ b/10.11/Dockerfile.rhel10
@@ -43,7 +43,7 @@ RUN INSTALL_PKGS="policycoreutils rsync tar xz gettext hostname bind-utils groff
     rpm -V $INSTALL_PKGS && \
     /usr/libexec/mysqld -V | grep -qe "$MYSQL_VERSION\." && echo "Found VERSION $MYSQL_VERSION" && \
     dnf -y clean all --enablerepo='*' && \
-    mkdir -p /var/lib/mysql/data && chown -R mysql.0 /var/lib/mysql && \
+    mkdir -p /var/lib/mysql/data && chown -R mysql:0 /var/lib/mysql && \
     test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)"
 
 # Get prefix path and path to scripts rather than hard-code them in scripts