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

3024 Commits

Author SHA1 Message Date
Stefan Metzmacher
df50ee886f [libreplace] fix the standalone build of libreplace
all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!

metze
(This used to be commit 1eefa0264bb1a304a30ec4c7c6e2392c627ee6a3)
2007-10-18 10:54:37 +02:00
Jeremy Allison
bb126d1f49 Reformatting fix for new coding guidelines. BOOL ->bool.
Jeremy.
(This used to be commit 315215e20e1e470c5077122a2e250ecb3d45ce9b)
2007-10-17 12:10:12 -07:00
Stefan Metzmacher
fa12678f4e delete empty file lib/replace/system/getaddrinfo.h
metze
(This used to be commit 354bdd38e8714b789daffc897cd843a8d401be45)
2007-10-17 15:21:48 +02:00
Jeremy Allison
2b2168bff6 Improve IPv4 detection.
Jeremy.
(This used to be commit 2ef50e325c2183385286b994216624dc3a309ff3)
2007-10-16 16:01:13 -07:00
Jeremy Allison
cadb72dd99 Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
(This used to be commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
2007-10-16 15:15:23 -07:00
Jeremy Allison
9125bcf77b Added in missing def for AI_ADDRCONFIG.
Jeremy.
(This used to be commit 3ef3c3afc3f56b0f4fdb384d55d2e712060fbedf)
2007-10-16 12:22:58 -07:00
Jeremy Allison
ce77126e68 Fix access control code to be IPv6/v4 protocol independent.
Make unix_wild_match() talloc, not pstring based.
Next will be name resolution code, and client code.
Jeremy.
(This used to be commit f6a01b82c5a47957659df08ea84e335dfbba1826)
2007-10-16 11:33:37 -07:00
Jeremy Allison
666f50b01f Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where
we're looking for host aliases (I don't know how to do that
with getaddrinfo yet). New function should be getaddrinfo().
Next step will be fixing lib/access.c, and then changing
libsmb/namequery.c to cope with IPv6 address returns.
Jeremy.
(This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
2007-10-15 16:11:48 -07:00
Jeremy Allison
48cd61d30e Fix warning messages for unused variables.
Jeremy.
(This used to be commit 406737cd9a34ac498e5823b380e1768d41e16c1b)
2007-10-15 15:52:30 -07:00
Stefan Metzmacher
c08cd08acc rename getsmbpass -> rep_getpass and provide the function prototype
metze
(This used to be commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
2007-10-15 15:42:13 +02:00
Stefan Metzmacher
d5712f071a use "system/*.h" to get the system includes
metze
(This used to be commit d20c2fa274297e9577ed28b8ed04806a425bdc57)
2007-10-15 15:41:06 +02:00
Stefan Metzmacher
c6a17c85e1 fix the compilation of getpass.c and it's configure test
metze
(This used to be commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
2007-10-15 13:20:41 +02:00
Jeremy Allison
a09bc48a1d r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy.
(This used to be commit 33ee0cfb190a883229d0824d7194898fd8966ceb)
2007-10-15 13:20:41 +02:00
Jeremy Allison
335c35318a r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.
(This used to be commit 46c12de07fe6f44bcf58ca9de276e7932384843d)
2007-10-15 13:20:40 +02:00
jmcd
3c258755b5 Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout.
(This used to be commit 0cd1ed0424ce87f60070d43caffda41be6706d59)
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
65f16c7fed reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
metze
(This used to be commit d4ae42b1b2982dd786d6da16d7fa964d25fd3356)
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
7fedf44eff reformat getpass() replacement code
metze
(This used to be commit 3e8f43e3cf97f10be4717978643ef3edca8650a5)
2007-10-15 13:20:39 +02:00
Stefan Metzmacher
2ecbed36b2 missing stuff from samba4's libreplace
metze
(This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
2007-10-15 13:19:28 +02:00
metze
804396dce9 don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit ec8e3f7f92522c65ec472058321db8a7ac30ec4c)
2007-10-15 13:19:28 +02:00
Volker Lendecke
c9165b99e9 Fix one more place for IFF_LOOPBACK
(This used to be commit add1294562b76c38d5e471f280ca1167b4d8a93d)
2007-10-14 19:00:49 +02:00
Volker Lendecke
478ad87cb3 Use strlcpy instead of strncpy
(This used to be commit 5e95c548864bc8b075b8343e69a69e1a22c92456)
2007-10-13 21:44:58 +02:00
Volker Lendecke
70b416a174 Fix an uninitialized variable warning
(This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424)
2007-10-13 21:44:58 +02:00
Volker Lendecke
3d89bad41f Fix a segfault with an unknown interface
"interfaces = foo" with "foo" not being a known interface segfaulted for me.
(This used to be commit 556c33702ce6d6c7cde43ddfe965c78ebc2963d3)
2007-10-13 21:44:58 +02:00
Volker Lendecke
e8b83d79b1 Also find loopback interfaces
Not sure if a loopback interface is actually a broadcast one.
(This used to be commit 76d8dedc368ecb1594780ce58ffee2a35a6f4f73)
2007-10-13 21:44:58 +02:00
Jeremy Allison
6c8225445b Dummy formatting commit to check I've set up my home git
correctly.
(This used to be commit a1166e9e651f4acdcf7926c5d8e9cf0c9108fe71)
2007-10-12 21:50:41 -07:00
Jeremy Allison
e9cf3a8ca2 Convert get_peer_addr() to IPv6. Only is_myname_or_ipaddr()
lefto to do then I can fix the lib/access.c functions.
Jeremy.
(This used to be commit 3403c6c330b886c86d6d856c3ffc13b043fd6fc1)
2007-10-12 13:38:04 -07:00
Stefan Metzmacher
9d29664b33 offsetof() is always present as shown in some
libreplace testing.

metze
(This used to be commit 4f084efd6ac39a8347d5cfc73b727940e40150cf)
2007-10-12 10:06:27 +02:00
Jeremy Allison
f4fd12acc8 Try and fix segfault found by Guenther on Fedora. Fedora
seems to return bogus values for the interface entries on
vmnet and tun interfaces.
Jeremy.
(This used to be commit 12c0b1d82802ccd1b272a8b47ddb7d258e10477c)
2007-10-11 18:03:12 -07:00
Jeremy Allison
cb5436bcc3 Add const to the get_peer_addr() and get_socket_addr()
calls. Use the IPv6 varient for get_peer_addr().
Jeremy.
(This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea)
2007-10-11 15:36:13 -07:00
Jeremy Allison
8e54530b52 Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
(This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10 18:25:16 -07:00
Jeremy Allison
0ec55a2462 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into SAMBA_3_2_0
(This used to be commit 3f1ac564c0ab6d498a47da84b4b5744d8d376f3b)
2007-10-10 17:56:55 -07:00
Jeremy Allison
81a70d4ac5 Merge from metze of libreplace header changes
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-10 17:56:19 -07:00
Guenther Deschner
f28dc0280d Display ace_objects in security descriptors.
Guenther
(This used to be commit 5fa3fc81b765f1d9682170de13d2e10994fdd889)
2007-10-11 02:25:44 +02: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 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10 15:34:30 -05:00
Jeremy Allison
a74c3385fc r25587: Fix getaddrinfo detection code. From Timur.
Jeremy.
(This used to be commit 3824a10fbcc3e061d569b0f74501ce97ec0a4414)
2007-10-10 12:31:16 -05:00
Günther Deschner
52ef68ad4b r25575: Document S-1-5-12 (restriced code sid).
Guenther
(This used to be commit 109b09edef4bcad06c3b850edf7db74419c3ad78)
2007-10-10 12:31:16 -05:00
Jeremy Allison
f7055aef17 r25565: Fix unintended consequence change for IPv6 noticed
by Volker. We used to return 0.0.0.0 for the text
address of an uninitialized socket - ensure we
still do so. Once uninitialized address is as
good as any other.
Jeremy.
(This used to be commit 2827bbe0f853d413b6fcb0eb676048c041cea713)
2007-10-10 12:31:14 -05:00
Volker Lendecke
b5535567c1 r25564: Pass sharename to delete_share_security()
(This used to be commit d100bfffe2a503b8820889faedc6ed57100ca7af)
2007-10-10 12:31:13 -05:00
Volker Lendecke
f708132de7 r25561: Make use of [un]marshall_sec_desc
Minor cleanup only
(This used to be commit 4dc4364b68b6b68ae0951a84475e2f9ea8cb1f8c)
2007-10-10 12:31:13 -05:00
Jeremy Allison
d704cbdb41 r25560: Merge from Jelmer. "Define HAVE_* for other gai functions to prevent problems with libroken."
Jeremy.
(This used to be commit 3cd783e3a51c0f9e514f0702531b40bf9776e61a)
2007-10-10 12:31:13 -05:00
Jelmer Vernooij
d154a0d74b r25557: merge libreplace fixes from samba4
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
2007-10-10 12:31:13 -05:00
Volker Lendecke
0ebab65706 r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
(This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
2007-10-10 12:31:12 -05:00
Jeremy Allison
3dbb3d4c26 r25510: Now we're returning the port instead of using a global,
remember to use ntohs. Hopefully will fix the build farm.
Jeremy.
(This used to be commit 5174acccb589edbfbe4ba633f4178f7200d7d6c4)
2007-10-10 12:31:11 -05:00
Jeremy Allison
d75b175cf9 r25508: Reformatting.
Jeremy.
(This used to be commit b412ba6fb3e526f5cd83e6cabd952ad7c303c346)
2007-10-10 12:31:11 -05:00
Jeremy Allison
b5725f4fec r25507: Fix definition of struct sockaddr_storage if
struct sockaddr_in6 is defined.
Jeremy.
(This used to be commit 4cf17df5caeb2b0220f6a7dd82d5fed5aca56850)
2007-10-10 12:31:11 -05:00
Jeremy Allison
941544a951 r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfo
under the 2 clause *BSD license for future use in IPv6 code. Original
code was from PostgreSQL and I've maintained their license even though
I've rewritten large parts of it (I probably should donate this back
to them).
Jeremy.
(This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
2007-10-10 12:31:10 -05:00
Jeremy Allison
30e4012396 r25495: Fixup definitions for missing sockaddr_storage.
Jeremy.
(This used to be commit d980ee5040f2ab9e7408218d13962dd64e2b33b1)
2007-10-10 12:31:10 -05:00
Jeremy Allison
0d87820380 r25492: Start adding IPv6 compatible code to lib/util_sock.c and deal with
the ripple effects this causes. utmp has to change etc. Remove some
global varables and store address/port in the unexpected db.
Jeremy.
(This used to be commit 18c6a2211d9e25233d01715b3f78977edcd6d869)
2007-10-10 12:31:09 -05:00
Jeremy Allison
334b288831 r25487: Try fix the build - fix socklen_t and sa_family_t.
Jeremy.
(This used to be commit 2cab82563409eca79ac5f518a3dcb8cdbdcded7e)
2007-10-10 12:31:08 -05:00
Jeremy Allison
e817616a0e r25476: Finally fix up new interface detection code :-).
Jeremy.
(This used to be commit fffdad52859b5a8bc5dd61912d80b93e8c030c8f)
2007-10-10 12:31:07 -05:00