vsnprintf.c not working on solaris 2.5.1

Bug #265588 reported by Patrickpine
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

the accompanying vsnprintf.c which should be useful
on Solaris hosts that don't have a vsnprintf does not
work as it does not understand the 'ld' modifier (as in
%ld). I fixed this by defining #define HAVE_VSNPRINTF
 in common.c and change the call to vsnprintf() from

vsnprintf(log_entry, BUFSIZE, format, arg_ptr);

to

__vsnprintf(log_entry, BUFSIZE, format, arg_ptr);

__vsnprintf() is an undocumented vsnprintf() in
Solaris' libraries that works at least in Solaris 2.5.1

More elegant fixes might be possible :)

[http://sourceforge.net/tracker/index.php?func=detail&aid=494594&group_id=103&atid=100103]

Revision history for this message
Barry Warsaw (barry) wrote :

There's no attachment, did you forget to check the box that
says "check to upload & attach file"?

Please re-upload a patch, but if possible:

1. port it to Mailman 2.1 cvs
2. Release it under the GPL

I can handle #1 if you've got it working for MM2.0.x, but
the code must be GPL'd for me to be able to use it.

Revision history for this message
Barry Warsaw (barry) wrote :

Moving this to pending status. It will be discarded
automatically unless it's responded to by the submitter.

Revision history for this message
Bug Importer (bug-importer) wrote :

the fix I mentioned in my report should be enough,

Revision history for this message
Barry Warsaw (barry) wrote :

Why does the vsnprintf() in vsnprintf.c not work for you?

Revision history for this message
Barry Warsaw (barry) wrote :

Moving back to Pending status. I think the supplied
vsnprintf() ought to handle things, so unless Patrick can
explain why that's not enough, this bug report should close.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.