diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-05-07 18:49:54 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-05-07 18:49:54 +0400 |
commit | 03039d4fc21d7fd37bf3552100f383bc0671c947 (patch) | |
tree | 88d878463752b66dc587b6b3bbc2b4da67eaff67 /winsup/cygwin/uinfo.cc | |
parent | 951bc34df496e1f8fa31db778534ea3c86f71827 (diff) |
* passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the
buffer len. Add comment.
* uinfo.cc (internal_getlogin): Fix typo in comment.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 5d69f4236..221eabfb2 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -135,7 +135,7 @@ internal_getlogin (cygheap_user &user) user.set_name (pwd->pw_name); myself->uid = pwd->pw_uid; myself->gid = pwd->pw_gid; - /* Is the primary group in the passwd DB is different from the primary + /* If the primary group in the passwd DB is different from the primary group in the user token, we have to find the SID of that group and try to override the token primary group. */ if (!pgrp || myself->gid != pgrp->gr_gid) |