1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

3517 Commits

Author SHA1 Message Date
Stefan Metzmacher
8657066f3a configure: Remove lib/repdir.c and related stuff
It was only used in configure, but lib/replace already
has a much better version of it.

metze
(This used to be commit c9b60b75b4)
2008-02-29 09:48:24 +01:00
Michael Adam
71f74cfc67 libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.
Michael
(cherry picked from commit 0aff54a12e)
(This used to be commit 77b7d7c041)
2008-02-29 09:32:11 +01:00
Michael Adam
a73f4bc27f libreplace: ifdef out ip6 code if unsupported.
Michael
(cherry picked from commit 54cc0df4db)
(This used to be commit 1ff0b616a9)
2008-02-29 09:32:05 +01:00
Michael Adam
5827e84d88 libreplace: fix rep_freeifaddrs to not segfault on NULL input.
Michael
(cherry picked from commit 0cbb87453b)
(This used to be commit 34d906ef44)
2008-02-29 09:31:57 +01:00
Michael Adam
b6578dc7fe libreplace: fix silly crashbug in getifaddrs_test().
Michael
(cherry picked from commit 523626908d)
(This used to be commit 0906120a6e)
2008-02-29 09:31:50 +01:00
Michael Adam
3be85e76a8 libreplace: add missing newline in output of getifaddrs test.
Michael
(cherry picked from commit f8243cfc47)
(This used to be commit 3c1843f931)
2008-02-29 09:31:39 +01:00
Michael Adam
539c4df84b libreplace: add missing semicolon to getifaddrs.
Michael
(cherry picked from commit 29818a07de)
(This used to be commit 1d906d346e)
2008-02-29 09:31:29 +01:00
Michael Adam
39cae1d5b7 libreplace: try and fix rep_getifaddrs() for Tru64.
Don't fail when there is no address assigned to the interface.
Put NULL into the ifaddrs structure instead.

Michael
(cherry picked from commit ee170c85e0)
(This used to be commit 650cc1da4b)
2008-02-29 09:31:19 +01:00
Michael Adam
ca237a3ad3 libreplace: use the new getifaddrs test also for autoconf.
Michael
(cherry picked from commit a2a506ff0e)
(This used to be commit c5932414fd)
2008-02-29 09:31:02 +01:00
Michael Adam
d24f3b8a93 libreplace: add extended getifaddrs test that prints out the interfaces.
Michael

cherry-picked from libreplace-part of 9d2bab09aa
and adapted replacetort creation
(This used to be commit 52d79ad487)
2008-02-29 09:30:40 +01:00
Günther Deschner
808348a8ca Trying to fix libnetapi examples Makefile.in.
Guenther
(This used to be commit 405ef74d7e)
2008-02-29 02:49:27 +01:00
Gerald W. Carter
8f58ae97f0 Fix macro name (no 's' in ifr_addr).
Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(This used to be commit 37c87acc9d)
2008-02-28 11:58:05 -06:00
Günther Deschner
77a2531810 Only set DEBUGLEVEL to 0 in libnetapi when not set already.
Guenther
(This used to be commit 3ace1601ac)
2008-02-28 17:25:33 +01:00
Volker Lendecke
93e06129ab Add basic infrastructure for general async requests
(This used to be commit ae254cb61f)
2008-02-28 15:27:55 +01:00
Günther Deschner
261671dc95 Remove unused display_ds_domain_controller_info() function.
Guenther
(This used to be commit 24a5098b1c)
2008-02-28 12:47:07 +01:00
Günther Deschner
0d8985f2da Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Guenther
(This used to be commit b1a4b21f8c)
2008-02-28 12:40:55 +01:00
Michael Adam
e281c0b1f5 libreplace: standalone build: use -I$srcdir instead of -I.
Michael
(This used to be commit 5c08730f19)
2008-02-27 11:07:01 +01:00
Michael Adam
e80790f649 libreplace: fix standalone build - add necessary libs.
The libs needed for getifaddrs replacements have to be added
to LIBS and used for the testsuite target.

Michael
(This used to be commit f162de7b80)
2008-02-27 11:06:54 +01:00
Michael Adam
a565f50735 libreplace: fix standalone build on some systems.
getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".

Michael
(This used to be commit 66d4c38967)
2008-02-27 11:06:46 +01:00
Michael Adam
7bdd648477 libreplace: Add tests for connect and gethostbyname.
Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
(This used to be commit c19f7a0e10)
2008-02-26 13:56:12 +01:00
Michael Adam
9f5c463415 Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
Michael
(This used to be commit 7b98620ef1)
2008-02-26 11:55:39 +01: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
Volker Lendecke
fdf4e84e2b Check return value of pipe(2)
(This used to be commit 49da21c03a)
2008-02-23 11:04:13 +01:00
Volker Lendecke
333c0aabc9 Check return value of dup(2)
(This used to be commit d34701d49c)
2008-02-23 11:04:13 +01:00
Volker Lendecke
cef18563bb Check the return value of fgets
(This used to be commit b8aaa9a69f)
2008-02-23 11:04:13 +01:00
Michael Adam
0f0998a06b libreplace: don't use socketwrapper for getifaddrs() implementations.
Michael
(This used to be commit 85eec1d1d6)
2008-02-22 14:13:28 +01:00
Michael Adam
6a27493578 libreplace: Fix comment originating from old samba source.
Michael
(cherry picked from commit 0440bcfe63)
(This used to be commit ddf7ac4f26)
2008-02-22 10:48:18 +01:00
Michael Adam
e033fdbde2 Not all implementations of struct ifaddrs define ifa_broadaddr.
E.g. the definition of libreplace doesn't. :-o

Michael
(This used to be commit 25341602ec)
2008-02-22 10:43:42 +01:00
Michael Adam
5c6db777e4 Remove the implementations of _get_interfaces and autoconf test in interfaces.c
getifaddrs() is now provided by libreplace.

Michael
(This used to be commit 7970901223)
2008-02-22 01:59:45 +01:00
Michael Adam
cc32d4c316 libreplace: fix creation of conftest files for getifaddrs tests.
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.

Michael
(This used to be commit 26e6ebc709)
2008-02-22 00:36:20 +01:00
Michael Adam
e3d1f512cf Fix linked list of ifaddrs in implementations of rep_getifaddrs.
Produce proper list instead of one-node-loop.

Michael
(This used to be commit ec9f4f5066)
2008-02-22 00:36:20 +01:00
Michael Adam
e2ec7931ff Add missing initalizations of lastif in rep_getifaddr implementations.
Michael
(This used to be commit 65710e752f)
2008-02-22 00:36:20 +01:00
Michael Adam
bf6dbf8e1b libreplace: fix compile errors in getifaddrs.c
Michael
(This used to be commit 22cdd4cb50)
2008-02-21 18:16:10 +01:00
Michael Adam
357659b1d0 Try and fix getifaddrs check on irix: dont't try to include config.h
The missing header file is judged "catastrophic" on irix.

Michael
(This used to be commit 5778c90819)
2008-02-21 17:56:33 +01:00
Tim Potter
abf8465659 Fix possible close of invalid fd if call to socket() returns -1.
(This used to be commit f7d2f69299)
2008-02-20 17:58:50 -08:00
Jelmer Vernooij
9c3f0170b3 Support dlopen(NULL, ...) on HPUX.
(cherry picked from commit 53c70b5f77)
(This used to be commit 8883ee2418)
2008-02-20 21:12:54 +01:00
Michael Adam
3ac36c3caf libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
Michael
(cherry picked from commit 83387ecccf)
(This used to be commit 12ec7dfb10)
2008-02-20 14:14:50 +01:00
Michael Adam
9ba696cb68 libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
Michael
(cherry picked from commit 00c173bfba)
(This used to be commit 450034582b)
2008-02-20 14:14:41 +01:00
Michael Adam
2356cc6586 libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
Michael
(cherry picked from commit d3b3d3ec9f)
(This used to be commit d6719f1c2f)
2008-02-20 14:14:31 +01:00
Michael Adam
b277aa2893 libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
Michael
(cherry picked from commit acab9def2a)
(This used to be commit f790cb4aed)
2008-02-20 14:14:20 +01:00
Michael Adam
89ad7e4ed1 libreplace: Remove double item in case statement.
This was by accident introduced in cherry-pick commit
7a7dcd9b12: This tiny portion
had already been ported in 64ff1dad86.

MIchael
(This used to be commit 69b2ebc797)
2008-02-19 22:29:34 +01:00
Michael Adam
3e02cdcaa8 Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
Michael
(cherry picked from commit d10cbb533c)
(This used to be commit 12e5b9b406)
2008-02-19 22:14:12 +01:00
Jelmer Vernooij
c4265bd3e8 r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
(cherry picked from commit 37c7b65546)
(This used to be commit bc523382ae)
2008-02-19 22:12:50 +01:00
James Peach
5dd51159df r26551: Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(cherry picked from commit 188156228b)
(This used to be commit b4a2ec01fc)
2008-02-19 22:12:32 +01:00
Jelmer Vernooij
f75d7a6992 r26507: Fix function signature for freeifaddrs.
(cherry picked from commit cc873bdd2e)
(This used to be commit ccfb04d185)
2008-02-19 22:00:15 +01:00
Jelmer Vernooij
f822f4150b r26497: Fix return type for freeifaddrs().
(cherry picked from commit 8c65053f51)
(This used to be commit 57587e49f5)
2008-02-19 21:59:51 +01:00
Jelmer Vernooij
1caa9cbd9d r26495: Add defines for getifaddrs/freeifaddrs.
(cherry picked from commit c9e5a3078f)
(This used to be commit f2f5521068)
2008-02-19 21:59:27 +01:00
Jelmer Vernooij
ea9ce8f9ac r26492: Some hosts have a define called ifa_dstaddr.
(cherry picked from commit c4cd935ee7)
(This used to be commit 839d128a42)
2008-02-19 21:58:50 +01:00
Jelmer Vernooij
5fb2d5b086 r26491: Fix syntax.
(cherry picked from commit 2513230e28)
(This used to be commit d9c3b27c3f)
2008-02-19 21:58:12 +01:00
Jelmer Vernooij
1de665002c r26487: Cope with systems that don't have struct sockaddr.sa_len.
(cherry picked from commit 56080469ab)
(This used to be commit ce222d07ba)
2008-02-19 21:57:46 +01:00