From 25cb82a55ebdc42005198a670830897ed39e6330 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 22 Jul 2016 09:41:23 +0200 Subject: [PATCH] Change "nodomain+nobody" to "no+body" Per https://cygwin.com/ml/cygwin-apps/2016-07/msg00059.html Signed-off-by: Corinna Vinschen --- winsup/cygwin/uinfo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index bc2a2d821..77e8e8da7 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -1894,7 +1894,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap) } if (!ret) { - if (!strcmp (arg.name, "nodomain+nobody")) + if (!strcmp (arg.name, "no+body")) { /* Special case "nobody" for reproducible construction of a nobody SID for WinFsp and similar services. We use the @@ -2451,8 +2451,8 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap) nobody SID for WinFsp and similar services. We use the value 65534 which is -2 with 16 bit uid/gids. */ uid = gid = 0xfffe; - wcpcpy (dom, L"nodomain"); - wcpcpy (name = namebuf, L"nobody"); + wcpcpy (dom, L"no"); + wcpcpy (name = namebuf, L"body"); fully_qualified_name = true; acc_type = SidTypeUnknown; }