* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message

length to account for the trailing NUL.
This commit is contained in:
Corinna Vinschen 2014-04-16 09:26:41 +00:00
parent 1bf6c3ca61
commit d98d7f3973
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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)