1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-23 11:17:06 +03:00

147 Commits

Author SHA1 Message Date
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
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
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
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
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
Jeremy Allison
a2bbf608d2 r25455: Ensure we have inet_ntop and inet_pton available in lib/replace.
Jeremy.
(This used to be commit 1f719905440d4c87c526c56532f47d894cfec5f0)
2007-10-10 12:31:06 -05:00
Stefan Metzmacher
cdf9068269 r25252: move macro defines to the end of replace.h
and move the include location sys/param.h
before we redefine missing macros

metze
(This used to be commit 862046028c3c61adf6da2effac91abf3c763635d)
2007-10-10 12:30:55 -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
Volker Lendecke
b01978f2a9 r24354: Remove offsetof macro
Samba4 seems not to suffer from it
(This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)
2007-10-10 12:29:35 -05:00
Jelmer Vernooij
db2666759d r24341: Make libreplace provide offsetof.
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10 12:29:31 -05:00
Volker Lendecke
63acef8e46 r24054: Fix some warnings
(This used to be commit ed84540bb2825dfaca25649a1cfb9342b68c3068)
2007-10-10 12:29:00 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
28b9d61076 r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
(This used to be commit 727a6cf2cba8da6b40610409b264e86e6908eb0c)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
674b835241 r23799: updated old Franklin Street FSF addresses to new URL
(This used to be commit 43cd589773148fe3d243892768ce187604dd0c33)
2007-10-10 12:28:26 -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
5b4c4181b4 r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING file
(This used to be commit e87bb12093dc78eb539fac0a171379a8cb5cd416)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
34bb47c9b0 r23791: found some more v2->v3 conversions
(This used to be commit b6cbac3db3b478d5c7991cee78c6695fc8d22681)
2007-10-10 12:28:25 -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
Jeremy Allison
2a9b4da0fa r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
(This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
2007-10-10 12:28:21 -05:00
Michael Adam
c9e21d8770 r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.

But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.

Michael
(This used to be commit 5f5b93149216eb57872e4291336685b96948681e)
2007-10-10 12:23:10 -05:00
Stefan Metzmacher
9d71e20363 r23335: as not all source files include replace.h/config.h
before unistd.h we need to pass -D_FILE_OFFSET_BITS=64
together with -Dpread=pread64 -Dpwrite=pwrite64

metze
(This used to be commit 1716613cc7ab8dec739adadeadbf18937682cd5c)
2007-10-10 12:23:07 -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
b25bebb960 r23307: move readahead stuff out of libreplace and make it samba3 specific
as we can't replace this function in libreplace and we do
the some stuff for other function in the same way.

metze
(This used to be commit 5e9b84326b4c65799e6fa6550de870d9a7ebba85)
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
dd11ed64aa r23305: merge from samba4:
fix large file support on HP-UX 11.00 and 11.11

metze
(This used to be commit 85a07e24f0c9ea7062b7f8d02279e994bc1b5dc5)
2007-10-10 12:23:04 -05:00
Michael Adam
c3c7e1b423 r23109: Redo the change from r22772 I accidentially undid in r23108.
Michael
(This used to be commit 18a7e739ea5d19b2e220641e19662e2c263d281a)
2007-10-10 12:22:47 -05:00
Michael Adam
5aec9e21bd r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 5a06726e6873accd255d584e2c18e62dfcac108d)
2007-10-10 12:22:46 -05:00
Michael Adam
4f1d0a2d8f r22931: Fix logic in detection of the need to replace dlopen and friends.
Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen
was found in libdl but header dlfcn.h was not appropriate.

Michael
(This used to be commit 2c72980a808a9ebe5518c6e03baa66e6b97cc7db)
2007-10-10 12:22:10 -05:00
Derrell Lipman
1b55cf4384 r22772: - Still working on the fact that readahead() is not declared (on at least one
OS) but is available for linking.  Instead of running configure tests with
  -Werror-implicit-function-declaration in developer mode (which may lead to
  different library functions being used in developer mode than when not in
  developer mode), add tests for whether readahead is declared.  If not,
  provide a replacement declaration in lib/replace.
(This used to be commit 7d05fa8b32b5b33e95fd9d552d2a45013b4803ec)
2007-10-10 12:21:56 -05:00
Stefan Metzmacher
c5bcb4b31a r22659: merge from SAMBA_4_0:
- add AC_GNU_SOURCE macro for systems which don't have it
  (sles8)
- fix compiler warning on some systems

metze
(This used to be commit cb785d9bed23fdf930bbd059eeeba5bde04af829)
2007-10-10 12:19:53 -05:00
James Peach
cd449e610c r22394: Remove test directory once we are finished.
(This used to be commit e718606295f4d686767d1583fd5e774dd66b8b86)
2007-10-10 12:19:31 -05:00
Stefan Metzmacher
a8c6250274 r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
(This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1)
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
5a22df2a5c r22280: merge from samba4:
add a lot more detailed strtoll() and strtoull() tests

metze
(This used to be commit 737b445007109e3005e4c5fb278b56f00b8c157d)
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
004860e1cc r22274: merge from samba4:
- provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro

metze
(This used to be commit 5ca18546444e3e65491c2104cf8eeb1022bb5591)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
48e29ff642 r22271: merge from samba4:
provide __location__ in replace.h

and see how the build-farm likes this simpler version

metze
(This used to be commit 3f87165771ecbbcd70e870235e324d25b21a04d4)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
4341be4593 r22264: merge from samba4:
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
(This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
b97c8658d5 r22254: merge from samba4:
- make the strtoll tests more verbose
- add initial strtoull tests

metze
(This used to be commit 9865d3165d629c56a24d9fa5ee993f4b04ba12de)
2007-10-10 12:19:22 -05:00