[sparks-discuss] libldap:ber_printf() 'O' in format string [PSARC/2008/607 FastTrack timeout 10/01/2008]
John Plocher
John.Plocher at sun.com
Tue Sep 30 10:48:32 PDT 2008
Nicolas Williams wrote:
> For some reason said file does not appear on the opensolaris.org page
> for this case. Can someone tell me how to make it appear there?
I'm working on it. I think it has to do with the embedded
quotes in the IAM filename...
> In the meantime I've attached it to this post.
The man page description seems odd and inconsistent.
It says
The format string can contain the following
characters: -b ... -n ... -o ... O ...
(note the leading hyphens in front of everything
except the new 'O' character)
The problem is that it doesn't. The example shows
ber_printf( ber, "{siiiib{v}}", ...)
no "-" signs at all, anywhere. The man page should instead
present the characters in the list as quoted characters:
'O' Octet string. A struct berval * is supplied. +
An octet string element is output. +
(it is probably out of scope to complain about the misuse of
the printf() design pattern this way - printf uses '%' as
a formatting character escape/identifier and passes thru
everything else unchanged. ber_printf() takes *every*
character in its format string as a formatting command,
and errors out on unexpected commands.)
-John
More information about the opensolaris-arc
mailing list