[newlib-cygwin/cygwin-3_6-branch] Cygwin: Fix chown commands in cygserver-config

Jon Turney via Cygwin-cvs <[email protected]> Wed, 10 Jun 2026 17:13:09 +0000 (GMT)
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D3da6529358f=
a4d9c880b53309a81c12192fdaacd

commit 3da6529358fa4d9c880b53309a81c12192fdaacd
Author: Mark Geisert <[email protected]>
Date:   Mon Jun 8 15:10:09 2026 -0700

    Cygwin: Fix chown commands in cygserver-config
   =20
    Change "chown 18.544" to "18:544" in two locations.
   =20
    Reported-by: Lionel Cons <[email protected]>
    Addresses: <https://cygwin.com/pipermail/cygwin/2026-June/259786.html>
    Signed-off-by: Mark Geisert <[email protected]>
    Fixes: b5a7cb02cd9d (* cygserver-config: Use numeric id 18 instead of "=
system" in chown.)
    (cherry picked from commit f32a05ec3d73bd0ff917d94d8bacaa035f56e773)

Diff:
---
 winsup/cygserver/cygserver-config | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygserver/cygserver-config b/winsup/cygserver/cygserver=
-config
index abda18644..3130de7bc 100755
--- a/winsup/cygserver/cygserver-config
+++ b/winsup/cygserver/cygserver-config
@@ -162,7 +162,7 @@ then
     exit 1
   fi
   chmod 664 "${SYSCONFDIR}/cygserver.conf"
-  chown 18.544 "${SYSCONFDIR}/cygserver.conf"
+  chown 18:544 "${SYSCONFDIR}/cygserver.conf"
 fi
=20
 # On NT ask if cygserver should be installed as service
@@ -194,7 +194,7 @@ then
       echo "To start it, call \`net start ${service_name}' or \`cygrunsrv =
-S ${service_name}'."
     fi
     touch "${LOCALSTATEDIR}/log/cygserver.log"
-    chown 18.544 "${LOCALSTATEDIR}/log/cygserver.log"
+    chown 18:544 "${LOCALSTATEDIR}/log/cygserver.log"
   fi
 fi