Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-04-16 13:26:41 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-04-16 13:26:41 +0400
commitd98d7f397389cca8f96318a1644431012a6211be (patch)
tree1f058e958345d394357ef930d610ba79e40bd370 /winsup/cygserver
parent1bf6c3ca61da3ad75c0e344532769ad23a95037e (diff)
* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
length to account for the trailing NUL.
Diffstat (limited to 'winsup/cygserver')
-rw-r--r--winsup/cygserver/ChangeLog5
-rw-r--r--winsup/cygserver/pwdgrp.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog
index 765af53a1..431629d56 100644
--- a/winsup/cygserver/ChangeLog
+++ b/winsup/cygserver/ChangeLog
@@ -1,5 +1,10 @@
2014-04-16 Corinna Vinschen <corinna@vinschen.de>
+ * pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
+ length to account for the trailing NUL.
+
+2014-04-16 Corinna Vinschen <corinna@vinschen.de>
+
* cygserver-config: Use numeric id 18 instead of "system" in chown.
2014-04-07 Corinna Vinschen <corinna@vinschen.de>
diff --git a/winsup/cygserver/pwdgrp.cc b/winsup/cygserver/pwdgrp.cc
index 90e88ce58..cc12deadd 100644
--- a/winsup/cygserver/pwdgrp.cc
+++ b/winsup/cygserver/pwdgrp.cc
@@ -58,7 +58,7 @@ client_request_pwdgrp::pwd_serve ()
(uint32_t) pwd->pw_gid,
pwd->pw_gecos ?: "",
pwd->pw_dir ?: "",
- pwd->pw_shell ?: ""));
+ pwd->pw_shell ?: "") + 1);
else
{
switch (_parameters.in.type)
@@ -109,7 +109,7 @@ client_request_pwdgrp::grp_serve ()
"%s:%s:%u:",
grp->gr_name ?: "",
grp->gr_passwd ?: "",
- (uint32_t) grp->gr_gid));
+ (uint32_t) grp->gr_gid) + 1);
else
{
switch (_parameters.in.type)