From: Christian Franke <Christian.Franke@t-online.de>
To: cygwin@cygwin.com
Subject: Re: how to drop administrator privileges?
Date: Mon, 30 Apr 2012 16:40:00 -0000 [thread overview]
Message-ID: <4F9EC085.8070602@t-online.de> (raw)
In-Reply-To: <20120427082014.GL25385@calimero.vinschen.de>
Corinna Vinschen wrote:
> Fixing cygdrop.
>
> $ net helpmsg 122
> The data area passed to a system call is too small.
>
> A quick look into the sources shows that the maximum buffer size for
> the group list returned by GetTokenInformation is wrongly computed:
>
> max_groups = 100;
> char groups_buf[sizeof(DWORD) + max_groups * sizeof(SID_AND_ATTRIBUTES)];
>
> The SID_AND_ATTRIBUTES structure only contains a pointer to the SID, so
> what's missing is actual space for the SIDs.
Oops.
> But it would be better to leave that to the OS anyway:
Thanks for the patch. Works as expected.
Christian
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2012-04-30 16:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 20:34 Achim Gratz
2012-04-26 21:33 ` Charles Wilson
2012-04-27 5:50 ` Achim Gratz
2012-04-27 7:35 ` Achim Gratz
2012-04-27 8:20 ` Corinna Vinschen
2012-04-27 14:43 ` Charles Wilson
2013-05-29 12:35 ` Achim Gratz
2013-05-31 2:51 ` Charles Wilson
2012-04-30 16:40 ` Christian Franke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F9EC085.8070602@t-online.de \
--to=christian.franke@t-online.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).