1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00
Commit Graph

139 Commits

Author SHA1 Message Date
Volker Lendecke
8bcd2df841 Fix bug 5055 2007-11-26 15:28:13 +01:00
Jeremy Allison
a1725f4ff7 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
2007-11-15 18:27:26 -08:00
Michael Adam
11bcdf780e 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
2007-11-16 00:45:59 +01:00
Jeremy Allison
e203ba2227 Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
2007-11-10 22:31:34 -08:00
metze
95dfbd3a6c libreplace: AC_VERIFY_C_PROTOTYPE() needs AC_LANG_SOURCE() to bring in confdefs.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25870 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:53:00 +01:00
metze
77900d2ba0 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
2007-11-09 09:52:59 +01:00
metze
8e81dd7356 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
2007-11-09 09:52:59 +01:00
jelmer
4642af8026 Try to fix building dso's on hpux with gcc
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25886 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:31:26 +01:00
jelmer
ccb39b1844 Try to get some more flags right.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25880 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:30:28 +01:00
jelmer
81167d8f38 Add libreplace macro for soname flags.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25877 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:29:16 +01:00
jelmer
8d1f54f45d Try to fix the build on some HPUX machines.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25875 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:27:03 +01:00
Jeremy Allison
2a0173743d Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
2007-11-08 17:25:45 -08:00
Stefan Metzmacher
130de20d64 libreplace: we need to link to make sure the functions are available
metze
2007-11-08 12:20:16 +01:00
Jeremy Allison
ef8da16983 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.
2007-11-06 21:47:57 -08:00
metze
760f24f10c libreplace: we should only have one location where we check for required functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
metze
20ec1f4725 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
2007-11-06 09:38:59 +01:00
jelmer
4d02b1344b Fix export dynamic for HPUX.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25861 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
57bea8cd02 Remove flag that causes problems on some hosts.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25860 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
0ec1672929 Wrap native HPUX functions in dl implementation.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
9f862e9faf Check for HPUX dl functions.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
322cf8002b Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
63b7690335 Move system-specific ldflags checks to libreplace so they can be used by ldb.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
48c70f6040 Add macro for picflag.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
4904af51cd Add configure test for -Wl,--export-dynamic.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:57 +01:00
metze
809fee4bef 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
2007-11-06 09:38:57 +01:00
Jeremy Allison
494bf6293b Fix the snprintf checks, and fix a typo in pointer indirection.
These fixes are needed for a working getaddrinfo etc. replacement.
Fixes from Wayne Davison <wayned@samba.org> from rsync.
Jeremy.
2007-11-02 14:23:10 -07:00
Volker Lendecke
e17d3e10e8 Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
2007-10-27 12:50:36 -07:00
Jeremy Allison
a68bbea0d4 Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy
2007-10-25 15:43:44 -07:00
metze
11a977aa07 [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
2007-10-25 15:55:47 +02:00
metze
de01c503f4 [libreplace] move and fix getaddrinfo configure checks
- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25726 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-25 15:55:19 +02:00
metze
e56977ea45 - 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
2007-10-25 15:53:44 +02:00
metze
b81d8bc43c [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
2007-10-25 15:53:09 +02:00
metze
4515007567 [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
2007-10-25 15:52:59 +02:00
metze
fa120f7c50 [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
2007-10-25 15:52:47 +02:00
metze
f1d434a132 [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
2007-10-25 15:51:51 +02:00
Jeremy Allison
bc9008aa1d We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.
Jeremy.
2007-10-24 14:40:24 -07:00
Stefan Metzmacher
1eefa0264b [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
2007-10-18 10:54:37 +02:00
Stefan Metzmacher
354bdd38e8 delete empty file lib/replace/system/getaddrinfo.h
metze
2007-10-17 15:21:48 +02:00
Jeremy Allison
0ffdf4fdee Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
2007-10-16 15:15:23 -07:00
Jeremy Allison
3ef3c3afc3 Added in missing def for AI_ADDRCONFIG.
Jeremy.
2007-10-16 12:22:58 -07:00
Stefan Metzmacher
96820f8d8f rename getsmbpass -> rep_getpass and provide the function prototype
metze
2007-10-15 15:42:13 +02:00
Stefan Metzmacher
d20c2fa274 use "system/*.h" to get the system includes
metze
2007-10-15 15:41:06 +02:00
Stefan Metzmacher
f4c0961a16 fix the compilation of getpass.c and it's configure test
metze
2007-10-15 13:20:41 +02:00
Jeremy Allison
33ee0cfb19 r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy. 2007-10-15 13:20:41 +02:00
Jeremy Allison
46c12de07f r16245: Cope with string being zero len. Klocwork bug #410. Jeremy. 2007-10-15 13:20:40 +02:00
jmcd
0cd1ed0424 Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout. 2007-10-15 13:20:40 +02:00
Stefan Metzmacher
d4ae42b1b2 reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
metze
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
3e8f43e3cf reformat getpass() replacement code
metze
2007-10-15 13:20:39 +02:00
Stefan Metzmacher
0177158d85 missing stuff from samba4's libreplace
metze
2007-10-15 13:19:28 +02:00
metze
ec8e3f7f92 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
2007-10-15 13:19:28 +02:00