summaryrefslogtreecommitdiff
path: root/source3/lib/snprintf.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r13591: I really have no idea how this code ever worked. And I haveGerald Carter1-19/+22
no idea why no one (including myself) caught this with a compiler warning....Make sure new_chunk() actually returns a pointer to the allocated memory. SAMBA_3_0 now works again on Solaris. (This used to be commit cf9140ad266a8a710651570d0af8dc6188fafed0)
2007-10-10r13374: new revision of the snprintf replace codeSimo Sorce1-176/+580
still missing a configure test to make us substitute our snprintf to system one when the system one does not have positional parameters support (This used to be commit e9bcc24b13c0e264d1d4aaf31a56e38cb3fec830)
2007-10-10r11799: Added OpenSSH fix for "%.*s" format crash. From Darren TuckerJeremy Allison1-1/+22
<dtucker@zip.com.au> Jeremy. (This used to be commit b7dee71f26b26e2aed4124c7de52fa6771ce40dd)
2007-10-10r1656: Patch from James Peach:Vance Lankhaar1-0/+2
> This patch is (probably) needed for all systems that don't have a > C99/UNIX98 compliant vsnprintf by default. The builtin sm_*printf > were no being called, causing things like talloc_init to fail, with > predictable results. The should fix 6 (solaris/hpux/irix) builds on the build farm. Vance (This used to be commit 1a33999cf073ee18f846678357832ec7866bb467)
2007-10-10r1111: Rename vsnprintf to smb_vsnprintf so we don't get duplicate symbol errorsJelmer Vernooij1-1/+1
when linking against an app that does have vsnprintf() (bug #478) (This used to be commit 9f1c978088321b09dea96c54026ebdfaaf770641)
2003-10-24Some spelling mistakes in aclocal.m4 and the va_copy fixups in configure.inRichard Sharpe1-0/+4
and lib/snprintf. Check for va_copy first, and then look for __va_copy. (This used to be commit 8b592740b6294555c461d7eee003e2bd5f4352a4)
2003-07-23Ensure a prototype is generated for smb_snprintf()Tim Potter1-1/+1
Final bit for bug 187. (This used to be commit 13840704f5434bedef0ce21242e2dff7c2a0bddb)
2003-07-23A fix for bug 174. I'm pushing this to the tree to test it on one ofTim Potter1-4/+2
the build farm machines that I don't have direct access to (hpntc9I). (This used to be commit b01965823341bbabb74dcbc09d379b43db2ec680)
2003-05-14*****LDAP schema changes*****Gerald Carter1-9/+9
New objectclass named sambaSamAccount which uses attribute prefaced with the phrase 'samba' to prevent future name clashes. Change in functionality of the 'ldap filter' parameter. This always defaults to "(uid=%u)" now and is and'd with the approriate objectclass depending on whether you are using ldapsam_compat or ldapsam conversion script for migrating from sambaAccount to sambaSamAccount will come next. (This used to be commit 998586e65271daa919e47e1206c0007454cbca66)
2003-05-14Move some #ifdefs and function prototypes around to avoid a compilerTim Potter1-13/+14
warning when we have a working version of snprintf() (This used to be commit 4836c0c0fcbf4be5f52bba60cc8843e8551b59b8)
2003-05-12And finally IDMAP in 3_0Simo Sorce1-2/+8
We really need idmap_ldap to have a good solution with ldapsam, porting it from the prvious code is beeing made, the code is really simple to do so I am confident it is not a problem to commit this code in. Not committing it would have been worst. I really would have been able to finish also the group code, maybe we can put it into a followin release after 3.0.0 even if it may be an upgrade problem. The code has been tested and seem to work right, more testing is needed for corner cases. Currently winbind pdc (working only for users and not for groups) is disabled as I was not able to make a complete group code replacement that works somewhat in a week (I have a complete patch, but there are bugs) Simo. (This used to be commit 0e58085978f984436815114a2ec347cf7899a89d)
2003-05-05Fixed typo introduced in reverted patch from version 1.12.4.5Tim Potter1-1/+1
(This used to be commit 4fccc1f16da74ac9e98bd58c7f11674c48c4dbac)
2003-04-14Merge from HEAD 1.36.Martin Pool1-12/+46
(This used to be commit 25a01e3247ab8e52dc6c2d1f211ce10e09da5e70)
2002-12-19merge from 2.2Herb Lewis1-0/+2
actually print args for %g and %e (This used to be commit 077c515ee9d9976a5306c9f99a7bf45c8fc49dc9)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-32/+46
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-01-19fixes (asprintf) from 2.2Simo Sorce1-0/+1
(This used to be commit 6b123adda901ff05b0271eeda060297448f64eec)
2001-12-21fixed a typo in vsyslog()Andrew Tridgell1-1/+1
(This used to be commit da353bc539db6e2f8d834275abdd9b5fb47b9db8)
2001-12-19Added AC_CHECK_FUNCS(syslog vsyslog).Jeremy Allison1-0/+14
nsswitch code uses vsyslog without checking for it. Provide replacement for vsyslog in lib/snprintf if not found by configure. Jeremy. (This used to be commit ab2e55cdb376d6699c9a09fac243fba7d3840447)
2001-12-10Explain why snprintf has to be overridden in this way.Martin Pool1-1/+8
(This used to be commit a4cc69d9459879c3fa5e782efd643d4e8cd334ba)
2001-12-10Typo spotting.Tim Potter1-2/+2
(This used to be commit 62dfda654ba9a80aa4875ff73fd9170199c745ea)
2001-11-27allow printing of NULL pointers with internal snprintfAndrew Tridgell1-0/+1
(This used to be commit 91bc14f430f798c6be3cb21cb5199ec56308d4f2)
2001-11-27reverted incorrect patchAndrew Tridgell1-2/+4
(This used to be commit 96224fe2d40d0ce79d1215bb6f0d17291cace7b9)
2001-10-24Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 57b8e6d742addd9fa90da918ec4343d47562f0b7)
2001-05-06replace modf so we don't need the math libraryAndrew Tridgell1-4/+39
(This used to be commit 79c0d24a3092098d3d8e58ebe07cf61db7d898e5)
2001-04-28- added test for vasprintfAndrew Tridgell1-9/+17
- cleaned up GNUC printf attribute macros - added enum handling in mkproto - removed non-vararg code - made slprintf and vslprintf just macros for snprintf and vsnprintf - don't need slprintf code any more (This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
2001-04-28got asprintf defn rightAndrew Tridgell1-11/+12
(This used to be commit 531ab0917004cc1dbbdc4a2b6b8d41f354dd2da7)
2001-04-27added much better snprintf code, plus new function asprintfAndrew Tridgell1-734/+714
(This used to be commit 10327ad11f9a97bf536dc772c9577d8f6809c829)
2001-02-16Excise snprintf -> slprintf.Jeremy Allison1-1/+2
srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy. (This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
2000-07-06Bracked unbracketed macro arguments while looking for another bug.Tim Potter1-2/+2
(This used to be commit 873774e36dfc877727133a86fbc2c2ddc2d563cd)
2000-02-21Fix for crash bug from Paul Tyler <pct@ansto.gov.au>.Jeremy Allison1-10/+11
Jeremy. (This used to be commit 89aa4d8ca9cc9e8e6dd4566076c0cace8b82d838)
2000-01-12Fix problems with broken libc fvct returns.Jeremy Allison1-1/+8
Jeremy. (This used to be commit 6b61f2fe66a62082fdab998ec7bbb1184b9583d7)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-1/+61
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-03-25* client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva1-2/+26
* client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org> (This used to be commit 29581f8486e221f41669c2ca268c282f36a496ce)
1998-11-21global change from samba.anu.edu.au to samba.orgAndrew Tridgell1-1/+1
(This used to be commit 42d2509c9fab5c774fd33b9d4b5bd1ee125479c3)
1998-10-31added copyright notice from Patrick PowellAndrew Tridgell1-8/+5
(This used to be commit d398ae487a3edbfefb980fe0abddca1e95f6f3d5)
1998-10-28Fixes to allow this to pass SGI compiler in -fullwarn mode (with oneJeremy Allison1-9/+9
annoying exception I'm still looking at :-). Jeremy. (This used to be commit 9cade656e2db743cb6ee67bbb8b0f50e8e4c39f9)
1998-10-28fixed problem with snprintf.c and mkprotoAndrew Tridgell1-4/+4
(This used to be commit 99430ce899c02b95ab3c577afff7f28c6d5c6c45)
1998-10-28fixed handling of %.0f in replacement snprintf.cAndrew Tridgell1-12/+28
(This used to be commit 177b7b6b190c78ab59e19187d3221d23bb280911)
1998-10-27add ifdef for "long double"Andrew Tridgell1-12/+18
(This used to be commit ae1888529b00f1a98d2b76fec7f19684efca90c7)
1998-10-26added a vsnprintf() implementation from cvslock. See the notes on theAndrew Tridgell1-0/+801
license at the top of lib/snprintf.c I've always been slightly uneasy about our half-baked vslprintf() implementation and the risks on platforms that don't have vsnprintf() so when I saw this code in another GPLd package I wanted it for Samba. (This used to be commit e2cb50af45be6683d02ab48a6648816ee3d52ab1)