1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

933 Commits

Author SHA1 Message Date
Jeremy Allison
16afd6d2bc Added Mike Davidsons Tru64 ACL patch.
Jeremy.
(This used to be commit 8c5e5f8c84cab4273ca28d6b5f543dd5d5b464fb)
2001-08-10 20:48:25 +00:00
Tim Potter
62f7f6a022 Use the new client error api.
(This used to be commit 688da3c41dd944f7f69083518d25e9edbc55406f)
2001-08-10 06:01:11 +00:00
Simo Sorce
2f844bf447 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
(This used to be commit 7f33c01688b825ab2fa9bbb2730bff4f2fa352be)
2001-08-08 16:54:16 +00:00
Simo Sorce
92dbd04e0e me stupid.
never commit without building.
sorry.
(This used to be commit f87924aec4ff3ad1855b470c33df2e0ae9d51d85)
2001-08-05 16:05:40 +00:00
Simo Sorce
e485a1a498 Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder
(This used to be commit b29a549cdd85d42a1697041ab04f0ae4eddd23ca)
2001-08-05 10:10:16 +00:00
Jeremy Allison
861cb26f5d Oops. Typo.
Jeremy.
(This used to be commit d862be4b680fc495d920fa802854032e668a2073)
2001-08-01 17:43:57 +00:00
Jeremy Allison
61bb3093e3 Pidfile check can be read-only. Removed old ifdef in password.c
Jeremy.
(This used to be commit d82efc61ef16533c5652a5d4a9863f8317cb4ea2)
2001-08-01 17:32:45 +00:00
Jeremy Allison
996719cce2 Added "use mmap" for HPUX.
Jeremy.
(This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
2001-07-30 22:21:31 +00:00
Jeremy Allison
08138a3244 Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.
Digital UNIX).
Jeremy.
(This used to be commit 324ba0512ec84bb173c72be3dfd2447e0dc30e26)
2001-07-26 21:16:39 +00:00
Andrew Tridgell
5489bd79b1 need to push smb_search strings in client charset
(This used to be commit df00e5dceae91f6ffca77704c4517b91fd796d32)
2001-07-25 13:19:14 +00:00
Andrew Tridgell
e845532d7c got rid of INFO: msgs at debug level 1
(This used to be commit e6773b08a4a1a54dca4a2e2ec5d4e9c43383b072)
2001-07-25 04:10:23 +00:00
Andrew Tridgell
a9126e5c1c ucs2 is always a multiple of 2 bytes
this gets rid of a bunch of iconv warnings
(This used to be commit 2ec59f731df6489756c5606ed63de90fb2a9241f)
2001-07-25 04:00:40 +00:00
Simo Sorce
1cbae7315f Convert other parameters (read list, write list, valid users...) to the P_LIST format.
changed functions to use list instead of strings
addedd lp_list_substitute function
(This used to be commit 7257d07563ba21bd88733d5d2b4ec4829fab2507)
2001-07-24 20:02:48 +00:00
Jeremy Allison
a9ab7eaa5d Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory.
Jeremy.
(This used to be commit eea1c30df246e081e672d7132345d0fd35ad9841)
2001-07-23 22:06:05 +00:00
Andrew Tridgell
4951426613 changed the iconv interface to go via ucs2 for all conversions. This
fixes some problems wih some character sets and allows for using
internal charsets in conjunction with ionv charsets
this makes us slower but more correct. speed will come later.
(This used to be commit 594f84b4e39182dcf344c02dc0185376a2726395)
2001-07-22 07:38:32 +00:00
Andrew Tridgell
512351db92 switch from UCS2 to UCS-2LE
(This used to be commit e236a3e29e4af24b20ec6af357ce67abf82b4528)
2001-07-22 00:27:30 +00:00
Tim Potter
f905c74d9a ^$&%&*$&)% readline uses \n characters instead of letting the terminal wrap
the screen.  This mucks up expect something severe.  )-:

Don't use readline if the CLI_NO_READLINE environment variable is set.
(This used to be commit f0b7593ef54f8f093018ee2a8325e6f4422a4bbd)
2001-07-20 07:46:39 +00:00
Tim Potter
8678c6d6f6 It looks like the rpc client code in libsmb hasn't been converted to the
new internal string stuff.  The main problem is that some unicode strings
are null terminated and some aren't.  There's no rhyme or reason to it -
some pipes have 99% of the strings terminated and some have 99%
unterminated.  To avoid having to actually know the termination policy, I
propose a set of functions that take a UNISTR2* and use the length
contained there.

Added rpcstr_pull_unistr2_string() function to convert a unicode string of
dubious termination to a fstring.
(This used to be commit e5b62b4961769e45bc377be6180ca61ef5f6c22e)
2001-07-20 01:32:56 +00:00
Andrew Tridgell
45635a4a79 removed some unnecessary code
(This used to be commit 1436c9f424abbac2752e952172ddbdf15ec73f91)
2001-07-18 21:48:36 +00:00
Andrew Tridgell
575e609c3b much better handling of broken DNS servers
we no longer lookup our own name when we create a socket in
open_socket_in(). That makes things work much better with the
broken DNS server at VA
(This used to be commit a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)
2001-07-10 02:53:48 +00:00
Andrew Tridgell
03efd16d34 added sec_initial_uid() function so we can ask if a file is owned by
the initial uid
(This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)
2001-07-08 18:22:46 +00:00
Andrew Tridgell
43dd159134 fixed the auto-initialisation of the iconv descriptors
(This used to be commit 66632782c583356550446638a832cc46a99f9f62)
2001-07-08 18:22:04 +00:00
Andrew Bartlett
7be19ad10f Add backend encryption support for NTLMv2.
The leg-work for this was done by the folks at samba-tng.org, I'm just bringing
it accross to HEAD.

The MD5 implementation is seperatly derived, and does not have the copyright
problems that the one in TNG has.

Also add const to a few places where it makes sence.

Andrew Bartlett
(This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)
2001-07-07 07:00:15 +00:00
Andrew Tridgell
a732bcd9d2 fixed strrchr_m
(This used to be commit f4359b5f7ff891d7fcb5772b589756376ae5d412)
2001-07-06 22:32:57 +00:00
Jeremy Allison
9df203f876 Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy.
(This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
2001-07-06 18:45:59 +00:00
Andrew Tridgell
6bd8340781 formatting fixes
(This used to be commit 67ca6cd8eb20621d3f5926e19822b479ac80cb9c)
2001-07-06 11:50:45 +00:00
Andrew Tridgell
c5cc721dc3 check for initialisation in convert_string()
otherwise initial load in smb.conf can fail
(This used to be commit e9c53606de237f91712bb9d2a9fdf84b80bce38d)
2001-07-06 11:50:07 +00:00
Andrew Tridgell
4b7c807085 fixed a silly bug in the internal UTF8 implementation
(This used to be commit 95a9a1814f1a1ac07c316cc920c7493a86d5a09b)
2001-07-06 08:59:50 +00:00
Andrew Tridgell
2251221550 got rid of insanely verbose debug messages on startup
(This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)
2001-07-06 03:18:54 +00:00
Andrew Tridgell
85a310c7f3 fixed inetd operation as non-root
(This used to be commit 9a9da44455fc35cb9b1625ffefd12a9c5fe48d6b)
2001-07-06 02:25:03 +00:00
Andrew Tridgell
9a0397cf69 added some comments and removed an unnecessary check
(This used to be commit 25c4b3f19315bdef57041da79c12271b72015701)
2001-07-06 00:14:56 +00:00
Andrew Tridgell
61e6d867c4 use alpha_strcpy on DNS names
(This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)
2001-07-05 04:44:09 +00:00
Andrew Tridgell
fb50cf54e5 optimised the 7 bit case for utf8 conversion
(This used to be commit 0c61e54f152eca6b7607fcce9ea512bc60a19060)
2001-07-05 00:57:42 +00:00
Andrew Tridgell
ee3119cee6 make sure we reset the shift state on error for charsets like SJIS
(This used to be commit 42648a7aada48220fdfaf6acfe95b9614122f1da)
2001-07-05 00:04:30 +00:00
Jean-François Micouleau
0a33bdc7bd unicode string length is twice longer ;-)
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)
2001-07-04 18:57:16 +00:00
Andrew Tridgell
22325f6fdb added builtin support for UTF8
(This used to be commit 76d83e7f704cf016308dccaad9bc42d57db97686)
2001-07-04 15:08:30 +00:00
Andrew Tridgell
681c3100ed more portability fixes
(This used to be commit bf818268516cfbebcdeacbb0528395e9bbb8e442)
2001-07-04 14:41:06 +00:00
Andrew Tridgell
33b550e47b portability fixes
(This used to be commit 7a5c24c219d8b19f2c3cd11fdde3ebcede0646a2)
2001-07-04 12:16:24 +00:00
Andrew Tridgell
f51260a65e got rid of __FUNCTION__ debug
(This used to be commit 815ca752744c2ae93390445f4bb6532d396bbc59)
2001-07-04 08:03:47 +00:00
Andrew Tridgell
0225d0c26d fixed uninitialised variable
(This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35)
2001-07-04 07:50:54 +00:00
Andrew Tridgell
5a2b87d810 missed a couple of strchr calls
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)
2001-07-04 07:39:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-04 07:15:53 +00:00
Jeremy Allison
c5bcad8385 Fixed warnings and made const-safe so it has the correct prototype.
Jeremy.
(This used to be commit e0f6863a1155db5206c103c29dc597d7c297ec11)
2001-07-03 21:07:26 +00:00
Andrew Tridgell
b470d157cd fixed socketpair_tcp for OpenBSD
(This used to be commit d99ce6a5e3455ed38ca3c1ac676b5048edf8c706)
2001-07-03 03:56:49 +00:00
Simo Sorce
9b70d328cb - sorry, forgot to check a pointer
(This used to be commit 4e0299d4c091bc4a63740f12588675507601e8cd)
2001-07-03 00:54:55 +00:00
Jeremy Allison
d6d9375efd Made talloc_realloc() semantics match realloc(). JF was complaining :-).
realloc(NULL) == malloc. realloc(p,0) == free() - a no-op in talloc.
Jeremy.
(This used to be commit 1ab31e5db53bc839d2785cce4d3c739c8004bbf6)
2001-07-02 22:17:58 +00:00
Simo Sorce
ef6c9d7425 "netbios aliases" and "interfaces" options change from P_STRING to P_LIST
(This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec)
2001-07-01 23:24:08 +00:00
Jeremy Allison
e2ced932db Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
(This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
2001-06-29 22:32:24 +00:00
Tim Potter
b3443597e2 Replaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
source and destination.
(This used to be commit 30411d4004ce7062e73506d228ef402b99226eee)
2001-06-29 01:15:28 +00:00