* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
length to account for the trailing NUL.
This commit is contained in:
parent
1bf6c3ca61
commit
d98d7f3973
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue