Volker Lendecke
31f157a04b
Move 128 bytes from the data to the text segment
2008-12-14 13:13:37 +01:00
Jeremy Allison
8b4b5c3a92
Add wrapper str_list_make_v3() to replace the old S3 behavior of
...
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>:
In samba 3.2 passing NULL or an empty string returned NULL.
In master, it now returns a list of length 1 with the first string set
to NULL (an empty list).
Jeremy.
2008-11-06 18:53:00 -08:00
Jelmer Vernooij
8e704e4107
Move more functions out of util_str.c into the shared util.c.
2008-10-19 12:38:16 +02:00
Jelmer Vernooij
f3f9446ec1
Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal.
2008-10-18 16:16:57 +02:00
Jelmer Vernooij
89c9545430
Use str_list_equal() rather than str_list_compare().
2008-10-18 15:56:07 +02:00
Jelmer Vernooij
4746f79d50
Use {u,}int64_t instead of SMB_BIG_{U,}INT.
2008-10-14 01:59:36 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jeremy Allison
9efccda1cc
Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegscheid@whirlpool.com>.
...
Jeremy.
(This used to be commit 1295bb9787
)
2008-08-21 10:25:02 -07:00
Karolin Seeger
933fdd4017
talloc_string_sub2: Don't return NULL if src is empty.
...
This fixes BUG #5635 .
Finished print jobs were not removed from the $PRINTER.tdb file if
"printing=cups".
In print_queue_update, talloc_string_sub2 is used to assemble the
"lprm command". In the case of using "printing=cups", the default
"lprm command" is an empty string. talloc_string_sub2 is called with
this empty string and returns NULL which leads to exiting
print_queue_update without doing the actual print queue update.
Signed-off by Michael Adam <obnox@samba.org>
(This used to be commit 03d66554d1
)
2008-07-25 09:53:26 +02:00
Volker Lendecke
a5ad7a64c6
Fix a segfault in base64_encode_data_blob
...
We did not allocate enough memory for the \0 and a = at the end
(This used to be commit ea110de1dc
)
2008-07-10 18:24:46 +02:00
Günther Deschner
d4c5a1d504
util_str: add talloc_asprintf_strlower_m().
...
Guenther
(This used to be commit 7f8b0b4d15
)
2008-06-04 01:35:43 +02:00
Tim Prouty
fb37f15600
Cleanup size_t return values in callers of convert_string_allocate
...
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5
)
2008-05-20 22:40:13 +02:00
Volker Lendecke
768a5a23e0
Fix bug 5375
...
Thanks to Moskvin for testing
(This used to be commit d3c31aa36c
)
2008-04-07 10:20:39 +02:00
Volker Lendecke
3176392878
Fix some warnings
...
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0ae
)
2008-02-25 16:09:26 +01:00
Karolin Seeger
2a6a2288c5
Fix some typos.
...
Karolin
(This used to be commit 2bec0a1fb7
)
2008-02-08 10:05:32 +01:00
Volker Lendecke
b361956942
str_list_free is not needed anymore
...
(This used to be commit feddc1447d
)
2008-02-04 21:05:41 +01:00
Volker Lendecke
2762b9a975
Always pass a TALLOC_CTX to str_list_make and str_list_copy
...
(This used to be commit e2c9fc4cf5
)
2008-02-04 20:57:49 +01:00
Volker Lendecke
3955801298
Simplify str_list_xxx
...
(This used to be commit d471dd4adb
)
2008-02-04 20:05:26 +01:00
Kai Blin
805caafd44
util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
...
(This used to be commit ab0ee6e9a6
)
2008-01-19 02:20:16 +01:00
Jeremy Allison
980ac09849
Fixup hot paths - add macro for toupper (c < 0x80).
...
This now matches 3.0.x on my micro-tests.
Jeremy.
(This used to be commit 329b924cba
)
2008-01-09 17:32:26 -08:00
Volker Lendecke
bea1659911
Remove next_token_nr_talloc and its associated global
...
Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
(This used to be commit 86d9412611
)
2007-12-21 09:58:20 +01:00
Jeremy Allison
42cfffae80
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936
)
2007-12-07 17:32:32 -08:00
Jeremy Allison
acf15ae730
Don't build rpctorture anymore - not maintained. Just remove.
...
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac5
)
2007-12-07 12:26:32 -08:00
Jeremy Allison
9e8180b983
Remove pstrings completely except for smbctool (what does this do ?).
...
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c
)
2007-12-07 12:02:44 -08:00
Volker Lendecke
78c6ee0090
Remove some globals
...
(This used to be commit 31d0a846db
)
2007-12-05 14:39:07 +01:00
Jeremy Allison
3ec5a37280
Ok, down to just the client/*.c code now.
...
Jeremy.
(This used to be commit 7d3959f81a
)
2007-12-04 18:02:06 -08:00
Jeremy Allison
74dfee916f
Remove tok pstring from util_str.c
...
Do we even make rpctorture anymore ?
Jeremy.
(This used to be commit fecc3cc45a
)
2007-12-04 17:23:19 -08:00
Jeremy Allison
6f46f75dfc
Make strhex_to_str clear on string limits. Remove pstring from web/*.c
...
Jeremy.
(This used to be commit f9c8d62389
)
2007-12-03 17:17:05 -08:00
Jeremy Allison
d1807be93c
Fix restart after length count.
...
Jeremy.
(This used to be commit fa8115f32b
)
2007-11-30 14:15:34 -08:00
Jeremy Allison
810f760afd
Add talloc versions of all the next_token() functions.
...
Now I can really start removing fixed length strings...
Jeremy.
(This used to be commit 0ae61e2654
)
2007-11-30 13:09:04 -08:00
Jeremy Allison
4c6b01b0ef
Remove more pstring. Unify talloc_sub functions to make
...
them a better match for replacing string_sub. Remove
more unused code.
Jeremy.
(This used to be commit ae7885711f
)
2007-11-19 18:56:22 -08:00
Jeremy Allison
51b46147f2
Remove smbldap_get_single_pstring() and all pstrings
...
from pdb_ldap.c. I don't have an LDAP passdb setup here,
so I'm going to need some help on testing this.
Jeremy.
(This used to be commit 00760451b6
)
2007-11-14 16:05:42 -08:00
Jeremy Allison
79266500cd
Remove all pstrings from smbd/chgpasswd.c.
...
Jeremy.
(This used to be commit eaf14c701b
)
2007-11-12 15:02:50 -08:00
Volker Lendecke
62b97b0156
Make base64_encode_data_blob return a talloced string
...
(This used to be commit 5f205ab48d
)
2007-11-09 15:12:30 +01:00
Volker Lendecke
2d73e86cce
Remove unnecessary code
...
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b
)
2007-11-05 03:40:31 +01:00
Jeremy Allison
e054affb7b
Fix bug in writing names into gencache
...
as well as 2 typos where AF_INET6 was mistypes as AF_INET.
JERRY YOU NEED THESE FIXES.
Fixes smbclient -L localhost -U%
Bugs reported by Kukks (thanks kukks).
Jeremy.
(This used to be commit f109f82622
)
2007-10-25 19:07:25 -07:00
Jeremy Allison
f88b7a076b
This is a large patch (sorry). Migrate from struct in_addr
...
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c312
)
2007-10-24 14:16:54 -07:00
Jeremy Allison
bb126d1f49
Reformatting fix for new coding guidelines. BOOL ->bool.
...
Jeremy.
(This used to be commit 315215e20e
)
2007-10-17 12:10:12 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Volker Lendecke
ad97bcf813
r25184: Fix some C++ warnings and an uninitialized variable
...
(This used to be commit b64df8a3c5
)
2007-10-10 12:30:49 -05:00
Jeremy Allison
eacd314057
r25138: More pstring elimination. Add a TALLOC_CTX parameter
...
to unix_convert().
Jeremy.
(This used to be commit 39c211a702
)
2007-10-10 12:30:44 -05:00
Jeremy Allison
af3de3fa71
r25121: Remove pstring limits from much of our string handling function.
...
Still a few left (mainly the substitute ones).
Jeremy.
(This used to be commit 6552e52979
)
2007-10-10 12:30:42 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Volker Lendecke
32ba5145b8
r23518: Remove the silly assumption that string_replace requires a pstring.
...
Jeremy, I am always very confused about the different length arguments
in convert_string and friends. Can you take a look at the change in
string_replace and verify it's ok? Thanks!
While at it, remove the pstring limit for strhasupper and strhaslower.
(This used to be commit e6e5703658
)
2007-10-10 12:23:25 -05:00
Simo Sorce
34bc0e1883
r23356: We missed to add the 'c' character to the list of valid ones for
...
shell escaping.
I hate this kind of bugs more than how Jeremy hates off by ones :(
Simo.
(This used to be commit 42d846ff87
)
2007-10-10 12:23:09 -05:00
Gerald Carter
d34f6bb969
r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branches
...
(This used to be commit f65214be68
)
2007-10-10 12:22:02 -05:00
Jeremy Allison
0a2cc569a1
r22045: As Volker noticed, skip_string's last argument is
...
redundent. Remove it.
Jeremy.
(This used to be commit 140881cfbb
)
2007-10-10 12:19:05 -05:00
Jeremy Allison
261c004d7b
r22014: Make us pass RANDOMIPC test again :-(. This is an ugly check-in,
...
but I've no option.
Jeremy.
(This used to be commit c3a565081d
)
2007-10-10 12:19:01 -05:00
Jeremy Allison
a179d2f495
r20208: Change sprintf_append() never to use malloc,
...
but always use a talloc context.
Thanks to simo for pointing this out.
Jeremy.
(This used to be commit 437cb7c888
)
2007-10-10 12:16:32 -05:00