diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-04-16 09:26:41 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-04-16 09:26:41 +0000 |
commit | d98d7f397389cca8f96318a1644431012a6211be (patch) | |
tree | 1f058e958345d394357ef930d610ba79e40bd370 | |
parent | 1bf6c3ca61da3ad75c0e344532769ad23a95037e (diff) | |
download | cygnal-d98d7f397389cca8f96318a1644431012a6211be.tar.gz cygnal-d98d7f397389cca8f96318a1644431012a6211be.tar.bz2 cygnal-d98d7f397389cca8f96318a1644431012a6211be.zip |
* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
length to account for the trailing NUL.
-rw-r--r-- | winsup/cygserver/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygserver/pwdgrp.cc | 4 |
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) |