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

53 Commits

Author SHA1 Message Date
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a68352e55df081d06307f64f190773b3.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)
2008-01-18 17:02:13 +01:00
Stefan Metzmacher
1e5418edbc r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
metze
(cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
(This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
2008-01-18 17:02:12 +01:00
Stefan Metzmacher
a2bfb1749c r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
metze
(cherry picked from commit 1ecb4ec01b0506c95a5f90a62040329e7a39ee93)
(This used to be commit ff8a001f0d3f2655efafed41f2f0b14552a5c7e7)
2008-01-18 17:02:11 +01:00
Volker Lendecke
8b88fa53b5 Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a68352e55df081d06307f64f190773b3)
2007-12-25 18:37:42 +01:00
Jeremy Allison
8f28bda7f8 Fix bug #5121 (unix passwd sync not working on a streams based
system).
Jeremy.
(This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
2007-12-17 10:44:09 -08:00
Jeremy Allison
95c2f313ce Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
- slightly modified - Jiri please check !  to allow Solaris to get passwords > 8 chars.
Jeremy.
(This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
2007-12-11 13:16:35 -08:00
Michael Adam
684a72c779 Reformat configure checks for broken capabilities.h.
Michael
(This used to be commit 834a16225a8fb905a8f870a17ba67670e622eccc)
2007-12-03 16:54:12 +01:00
Michael Adam
f5b071e3b0 Move check for broken system capabilites.h headers to lib/replace.
Michael
(This used to be commit 8ec10c4ab1aa890c9f03d34bd872c93ae5c4d84c)
2007-12-03 16:54:12 +01:00
Michael Adam
fc0a63153f Add check for ppc statfs.h header to workaround for broken capabilities.h.
Taken from s3:lib/system.c

Michael
(This used to be commit 07e6cfdc626c2778292e5b0b338a35046c482cf9)
2007-12-03 16:54:12 +01:00
Michael Adam
6028176a39 Fix the build on RHEL5, when libcap-devel is installed.
The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c.

This commit adds a configure check and a workaround for this.

Michael
(This used to be commit 11bcdf780e164659b89a66e24edc27e89da7619a)
2007-11-16 00:45:59 +01:00
metze
05206ce0c2 libreplace: solaris has different prototypes for getpwent_r and getgrent_r
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25867 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 77900d2ba03455412ad645e757ba468ca90453fb)
2007-11-09 09:52:59 +01:00
metze
ca2ced5c23 libreplace: check for nss passwd|group get*_r functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25865 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8e81dd7356eb8422284a93bfc9b55ed1523c8208)
2007-11-09 09:52:59 +01:00
Jeremy Allison
d8f3c9d078 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
(This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06 21:47:57 -08:00
metze
cfb20163a5 libreplace: we need include <unistd.h> before nss_wrapper.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 20ec1f472566bbc570fa138cce5dbd0407aef530)
2007-11-06 09:38:59 +01:00
metze
f16544ad3b libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 809fee4bef66eb8b8687f88257c0d6f77d3b4063)
2007-11-06 09:38:57 +01:00
Jeremy Allison
1870643d20 Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy
(This used to be commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6)
2007-10-25 15:43:44 -07:00
metze
7c6ed7aa1c [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 11a977aa0757801fb0fa805b123e7bc75c8be447)
2007-10-25 15:55:47 +02:00
metze
899f921c72 - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25724 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit e56977ea459b3615d33237d19ed8e7ad8b509853)
2007-10-25 15:53:44 +02:00
metze
800ca51792 [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25718 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit b81d8bc43cd7167a5cd4b18c26ba3eecf75043eb)
2007-10-25 15:53:09 +02:00
metze
cd486165e9 [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25715 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 45150075677451b48ce56ebdce96aca1ed13fa80)
2007-10-25 15:52:59 +02:00
metze
556513ff72 [libreplace] move define of a constant to near to the others
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit fa120f7c50d0084e7d887811e5fa59ae3bcfe53e)
2007-10-25 15:52:47 +02:00
metze
8cca849769 [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25713 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit f1d434a132e424f2fdce59d51a7c398988c1474d)
2007-10-25 15:51:51 +02: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
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
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
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
Jeremy Allison
81a70d4ac5 Merge from metze of libreplace header changes
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-10 17:56:19 -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 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10 15:34:30 -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
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
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
c7da0dced6 r25474: Try and fix the build on Mac OS X 10.4.9.
Shuffle sa_family_t around.
Jeremy.
(This used to be commit f1b8c5de0ae96e04e340029f5cd544de9ac57b32)
2007-10-10 12:31:06 -05:00
Jeremy Allison
3fbd1ae54c r25472: Fix the interfaces code to detect IPv6 interfaces, using the
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
(This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10 12:31:06 -05:00
Stefan Metzmacher
68edc3a5c5 r25232: sync lib/replace with SAMBA_4_0
metze
(This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
2007-10-10 12:30:52 -05:00
Andrew Tridgell
9fa1c63578 r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
2c09988e46 r23790: LGPLv3+ conversion for our LGPLv2+ library code
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10 12:28:25 -05:00
Stefan Metzmacher
e893d7f021 r23309: sync lib/replace with SAMBA_4_0
metze
(This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
2f1aafa2a7 r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements

metze
(This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
6685e53385 r21944: move acl header checks to the correct place only
jeremy: please merge this to 3.0.25:-)

metze
(This used to be commit 874164e365b77947d5c514b2a77c6aae0f42599e)
2007-10-10 12:18:51 -05:00
Stefan Metzmacher
035bb5cc6f r21934: fix the build sorry
metze
(This used to be commit 184c4619773f786c5299499e121e485b7545764f)
2007-10-10 12:18:50 -05:00
Stefan Metzmacher
c542e154c2 r21931: include acl/libacl.h is present
I'm not sure if this should go into 3.0.25... it fixes a compiler warning about
a missing acl_get_perm() prototype

metze
(This used to be commit 4b67f94c6a148d6fecaa90d66ce6893b5feb370a)
2007-10-10 12:18:49 -05:00
Stefan Metzmacher
14ddce8b64 r20820: merge from samba4:
- include system/aio.h
- use full prototype for main
- use ifdef instead if

metze
(This used to be commit 024dd7d7c95bcf8d77914dc2063f16220358e690)
2007-10-10 12:17:09 -05:00
Stefan Metzmacher
2f66beb8ad r20817: sync lib/replace with samba4
metze
(This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014)
2007-10-10 12:17:09 -05:00
Stefan Metzmacher
f428e045c3 r20789: merge from samba4:
- remove the epoll configure checks from libreplace

metze
(This used to be commit 3061c333eca4aaff6af4b200cfe07d17f87018b2)
2007-10-10 12:17:09 -05:00
Jeremy Allison
ed34ffb147 r19957: Initial framework to make winbindd robust
against tdb corruption. Needs fleshing out
(and I forgot one record type) and needs helpful
suggestion from Volker to validate freelist,
but should give an idea of how this will look.
Jeremy.
(This used to be commit 8eb53f74e414483afde7b1e38ea2a3f56ae3ec66)
2007-10-10 12:16:15 -05:00
Stefan Metzmacher
1b80624c57 r19121: try to get rid of the difference between in system/iconv.h
between samba 3 and 4.

metze
(This used to be commit 04031a9fca037ad77cca0ba0da6801d5017521ba)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
6aed2cd44e r18958: merge from samba4:
we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
(This used to be commit d8275347606cd183caea69837fd765b96d4bab71)
2007-10-10 12:14:50 -05:00