This is the mail archive of the cygwin-patches mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 30 August 2007 01:35, Brian Egge wrote: > When running mkgroup after installing cygwin I receive the following > error: > > $ mkgroup -l -d > /etc/group > mkgroup (366): [2123] The API return buffer is too small. > > I suspect this is due to the large number of groups our organization > has. Very strange. All the other netenum* calls use MAX_PREFERRED_LENGTH. Can't see why this one would be omitted, but the fix is basically obvious. Tested by turning down the size to 128 so I could reproduce the error on my system here, then using MAX_PREFERRED_LENGTH and watching it no longer fail. winsup/utils/ChangeLog: * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum call so that it will automatically size returned buffer sufficiently. cheers, DaveK -- Can't think of a witty .sigline today....
Attachment:
mkgroup-bufsize-patch.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |