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

382 Commits

Author SHA1 Message Date
Richard Sharpe
cb5de0e176 Change the order of the -fPIC and -KPIC tests to ensure that UnixWare
is handled.
(This used to be commit 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c)
2001-07-10 07:14:24 +00:00
Andrew Tridgell
81393e6fda removed remnants of libtool
(This used to be commit abe01facea99f4cda76330d1265edde32b3c0a86)
2001-07-08 19:18:06 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-04 07:15:53 +00:00
Jeremy Allison
7ede14a3a7 Removed the default addition of /include to the directory given in
--with-sslinc. Should allow building on RH7.1 when set correctly.
Jeremy.
(This used to be commit 016a97d71aa1ac9de782248c645aecbf22ed647b)
2001-07-03 19:34:18 +00:00
Tim Potter
8f186886aa Fixed quoting bug - shell programming sucks.
(This used to be commit 60d42618416295a8fc25a461a8b4783bb219d6a7)
2001-07-03 02:27:17 +00:00
Tim Potter
e3284c5c12 Only build the pam_winbind module if --with-pam used.
Replaced extra shell variable with_pam_for_crypto with a check against
$with_pam
(This used to be commit 9db0332954e8b37fa5162b26d78de42a7fa533ae)
2001-07-02 08:58:57 +00:00
Andrew Bartlett
d2af8d03ab Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
(This used to be commit aa5708de69a71e6b41a12f63550fae94f2481742)
2001-07-02 04:47:55 +00:00
Richard Sharpe
7e7c258e0b These changes cause the libsmbclient stuff to always build a non-shared library and to build a shared library only for the four OSes that we currently like.
I will probably add HP/UX and AIX support based on the CUPS stuff soon ...
(This used to be commit 9585529455ae4a3e9b4dafc5f16286fabb052809)
2001-06-29 23:30:01 +00:00
Jeremy Allison
e2ced932db Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
(This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
2001-06-29 22:32:24 +00:00
Martin Pool
21fd0a0f62 Add check for working AF_LOCAL sockets, which are borken
on RH7.0 with _LARGEFILE64_SOURCE, and probably not
present on non-Unix systems like VMS.
(This used to be commit 8b0a5bc436fb44f5123d037b102f2d2c4d3287e8)
2001-06-26 07:44:02 +00:00
Andrew Tridgell
b95a294a08 fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define
(This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
2001-06-25 02:53:13 +00:00
Jeremy Allison
809c025878 Added patches to remove Linux specific XFS ACLs. These are now handled by the
generic Linux ACL code.
rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created.
Jeremy.
(This used to be commit db5b82e53a7061c4764d39ceb3df82e706aad42f)
2001-06-18 20:27:35 +00:00
Jeremy Allison
11b2de50fc Added getconf flags for RH7.1 lfs support. Changed while() to a for()
loop in Simo's code (removes much grp = gep->next code).
Jeremy.
(This used to be commit d0c276c2429fa19cd95ca887654e049593de68d5)
2001-06-06 23:07:10 +00:00
Tim Potter
4ebfe75e0e Compile fix for wbinfo on solaris.
(This used to be commit cae6958f0872e0a0cc7647d14dd855caecd9114b)
2001-06-04 02:23:08 +00:00
Tim Potter
f991e9b9d1 Added a --with/without winbind option to configure. The default is to
compile winbind on supported systems but this may be disabled using
--without-winbind.  Using --with-winbind on unsupported systems has
no effect.
(This used to be commit de46428d054285f568727589537cd8520ee0f687)
2001-06-01 11:53:48 +00:00
Andrew Tridgell
05d0841472 - added AC_HAVE_DECL() macro to aclocal.m4, so we can easily add
tests for a fn or variable being defined in headers
- used this to add prototypes for asprintf and vasprintf on systems
  that don't have them
(This used to be commit ab2465239414853a14529f88a25f13c392aa2d3f)
2001-05-30 12:28:13 +00:00
Jeremy Allison
d222a3f28d Try to fix build by adding autoconf tests for pam headers.
Jeremy.
(This used to be commit d52bc4d219bd07e656986e7754ea6e238c626d77)
2001-05-22 21:47:11 +00:00
Richard Sharpe
94f68abb7c Ohh boy, I should be working on lots of other things, but I am pissed off, so
I needed to get down and dirty and do some coding etc ...

Change -fpic to -fPIC ... Many people suggest that this is better ...
(This used to be commit 26eda1f2b065482d0b547f3068c78ae442ba18d9)
2001-05-17 02:52:42 +00:00
Tim Potter
84913375cc Added winbind programs to build for supported systems (i.e linux and
solaris) so the autobuilder can have a crack at it.

Cosmetic fix for large file support ./configure output.
(This used to be commit ded776af285baa65af151710fe7440b6c52fc409)
2001-05-16 02:32:34 +00:00
Jeremy Allison
548d16869a Fixed SHM_R/SHM_W warnings by moving sys/ipc.h and sys/shm.h into includes.h
and using autoconf tests.
Added "restrict acl with mask" parameter.
Jeremy.
(This used to be commit 7792e32ba7fd734cc68b354f31c382ac11521fe8)
2001-05-03 19:47:30 +00:00
Andrew Tridgell
089d8c544f added more complete C99 snprintf test
(This used to be commit 4d7565342d5b53dd038bf25dd6c6afc7132ba2aa)
2001-05-01 04:16:28 +00:00
Andrew Tridgell
d095b5249c - added test for vasprintf
- cleaned up GNUC printf attribute macros
- added enum handling in mkproto
- removed non-vararg code
- made slprintf and vslprintf just macros for snprintf and vsnprintf
- don't need slprintf code any more
(This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
2001-04-28 13:49:34 +00:00
Andrew Tridgell
fd5c6d72d3 added asprintf test
(This used to be commit 8bda86c0bfd3693420e334a10d19bed61b131bae)
2001-04-28 12:35:00 +00:00
Andrew Tridgell
dfc07f6174 added test for C99 compliant vsnprintf
(This used to be commit 9ebd90904e512c49cc80c584ab3d5902340ddcae)
2001-04-27 02:35:42 +00:00
Andrew Tridgell
9d32e3a528 fixed typo
(This used to be commit ed9d93c9c3c42b13b021e5e8f84f4d865cd28724)
2001-04-27 02:11:47 +00:00
Jeremy Allison
9f60d55b02 Fixed REPLACE_GETPASS test.
Jeremy.
(This used to be commit 3cfcaaca5ba54ada898680ac9943086316d262b4)
2001-04-26 18:36:38 +00:00
John Terpstra
c5eca67b0a Added Steve Langasek <vorlon@netexpress.net> pam_smbpass support
(This used to be commit 550cc5c182e88f742ac2052d80208da5f98e2543)
2001-04-24 21:13:48 +00:00
Gerald Carter
4c94cfa13f updating changes with 2.2 (comment lines in ./configure --help)
(This used to be commit cf9e34c79be4c09b84d648134933b9007a06dc92)
2001-04-24 14:31:45 +00:00
Andrew Tridgell
410ad56594 merge from 2_2
(This used to be commit 5e9a2084bfa555295f60485fc83f9bb9245f3fd4)
2001-04-19 13:47:12 +00:00
Jeremy Allison
8a1c2e0298 AIX ACLs donated by IBM.
Merge Andrew's fnmatch fix for WfW.
Jeremy.
(This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
2001-04-17 05:41:07 +00:00
Jeremy Allison
8c0a1c61cc Added --with-codepagedir as RedHat 6.2 and 7.x place them differently.
Jeremy.
(This used to be commit 1cfc542685f3ad6c16e922ca35043a1a9ce57f8e)
2001-04-16 07:10:55 +00:00
Jeremy Allison
ed449b8ca7 Added POSIX_ACL support for *BSD. Patch from jedgar@fxp.org. Changed
a bit to use AC_TRY_LINK to ensure functions are available for link
instead of AC_TRY_COMPILE.
Jeremy.
(This used to be commit c23628746342b6afa28cb34b0b4eaa61189ad390)
2001-04-14 19:46:28 +00:00
Jeremy Allison
53850c51ca configure:
configure.in:
include/config.h.in:
include/profile.h:
smbd/vfs-wrap.c:
smbd/vfs.c:
Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway).
smbd/dosmode.c:
smbd/files.c:
printing/printfsp.c:
smbd/close.c:
smbd/open.c:
Fixed "dos filemode" correctly so there are no race conditions. Forces test
of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls
standard close function that preserves POSIX locks due to POSIX-me-harder
braindamage. :-). Andrew please review this code.
Also - in removing the tmpdir param in smbrun an extra NULL parameter
was missed in each print_run_command() call (which is a varargs fn.).
Now fixed.
Jeremy.
(This used to be commit 32397e5bc6d995ce7ca37c82d6aedc1e5b1b6fbd)
2001-04-14 00:19:12 +00:00
Jeremy Allison
2ef68c7e92 Merge of Andrew's changes in 2.2.
Jeremy.
(This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-13 19:12:06 +00:00
Jeremy Allison
6578fd8742 To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
(This used to be commit 9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2)
2001-04-11 23:19:08 +00:00
Jeremy Allison
91e97f9091 Changed the order of -kPIC and -kpic.
Added patch from Michael Davidson <md@sco.COM> for Solaris/Unixware ACLS.
Jeremy.
(This used to be commit 144a2906810e8d4414d627835eb80f60bd1d88a4)
2001-04-11 02:02:45 +00:00
Herb Lewis
a01d164a12 keep cflags from being duplicated if defined in environment
(This used to be commit 2097298565b367157a3bc0c1178f17b1a6bbdd86)
2001-04-06 18:37:55 +00:00
Jeremy Allison
a6d201a8d7 Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.
Jeremy.
(This used to be commit 0865366f6b1070a8db3d8421c37c8072b36b96e3)
2001-04-03 00:40:01 +00:00
Jeremy Allison
92368833fa configure configure.in include/config.h.in lib/replace.c: Added test and replacement
for setlinebuf which apparantly doesn't exist on HPUX 11.
include/byteorder.h:
rpc_parse/parse_prs.c:
Ding Dong the witch is dead ! :-). Ok, I'm happy 'cos I've finally deleted
all the *HORRIBLE* DBG_RW_XXX and RW_XXX macros from include/byteorder.h.
They were macros that included macros that had conditional macros included.
No one understood them (they were the cause of most of the bigendian issue
bugs). Finally, I went into parse_prs.c and inlined all of that stuff with
regular function calls. They're understandable, they're easy to edit and
they don't include macros !
JF - please look at the one comment I added (JF PLEASE CHECK). I have
tested this partly with IRIX (a bigendian system) running with AS/U on
a Solaris box in SGI's lab, and I've also confirmed these new changes
work with W2K (vmware) but there may be the odd bug lurking. Herb, if
you could re-checkout and test again with this code that would help.

Extra.  Fixed bug spotted by the sharp eyes of JF - big endian unicode
packet would cause a early truncate of string parsing as we were checking for a char *
0, not a uint16 * 0.

Jeremy.
(This used to be commit 13765eca71e54aa5d048ce36cd8066b8406777c8)
2001-03-31 19:06:45 +00:00
Jeremy Allison
fcd0808776 standards.h only exists on IRIX 6.x and above (Herb please check !).
Jeremy.
(This used to be commit 80ce12d95396bac53b2303955e5081d9632cbf55)
2001-03-27 01:41:50 +00:00
Andrew Tridgell
9c4927d362 much better readline support from Simo Sorce, with some mods from me
to make it a bit simpler
(This used to be commit e1487eb2c4626dbe0cc3b17606eda702cedef28b)
2001-03-18 13:24:57 +00:00
Jeremy Allison
61b28a3aba Added patch from Urban Widmark <urban@teststation.com> modified by me to
enable large file support on Linux if glibc >= 2.2 and kernel >= 2.4.
Jeremy.
(This used to be commit c59a5db9c21d5642aa9ea2a5270343c7a52cf779)
2001-02-27 03:37:29 +00:00
Jeremy Allison
f93bb0801c rpc_client/cli_netlogon.c: Fixed incorrect printf.
Added Solaris ACL support.
Jeremy.
(This used to be commit f0d11b6997cc46a0210adef8cf572cf8b7e2467a)
2001-02-25 00:24:54 +00:00
Jeremy Allison
62dc55a432 configure configure.in smbd/posix_acls.c smbd/dosmode.c: Fix for zero permission W2K profiles.
libsmb/cliconnect.c rpc_client/cli_login.c smbd/reply.c: codepage fixes from Tim.
Jeremy.
(This used to be commit 3ded1e6bd5f79948e437ce5b1799705945f36ad2)
2001-02-16 00:24:43 +00:00
Jeremy Allison
cffc311b8a Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.
Ensure HAVE_NO_ACLS is set in configure if ACL support not selected.
Jeremy
(This used to be commit 523c91935621ec2d200a79385046694806f7c837)
2001-01-11 23:41:33 +00:00
Tim Potter
693f23a5cc Cosmetic fixups for large file support message.
(This used to be commit 671be482212634b9c1de40891032180fbc1d49ba)
2000-12-08 03:44:52 +00:00
Jeremy Allison
c31211167b Added better configure test for POSIX ACLs. Fixed stupid typo in sysacls.c
Jeremy.
(This used to be commit da6ae57501e3cb971e82eac5bb05efcd9cf443ae)
2000-12-07 06:23:01 +00:00
Jeremy Allison
423227d7ca Working code to read POSIX ACLs on a Linux system using the bestbits
ACL patch from http://acl.bestbits.at/.
configure support needs more work (just assumes correct headers at
the moment). ACL writing needs adding.
Jeremy.
(This used to be commit 6ae63e502e6adf3666a34aa87860c74e106fdb84)
2000-12-07 05:38:01 +00:00
Jeremy Allison
7e4c4721b4 Changed to sourceforge tdb code. This includes spinlocks (so we now have
a --with-spinlocks option to configure, this does mean the on-disk tdb
format has changed, so 2.2alphaX sites will need to re-create their
tdb's. The upside is no more tdb fragmentation and a +5% on netbench.
Swings and roundabouts....
Jeremy.
(This used to be commit 9dea7b7c257db487f8ced7dad3fce92fba03ea91)
2000-12-06 00:05:15 +00:00
Gerald Carter
0dcbafe2b9 Another large patch for the passdb rewrite.
o added BOOL own_memory flag in SAM_ACCOUNT so we could
    use static memory for string pointer assignment or
    allocate a new string

  o added a reference TDB passdb backend.  This is only a reference
    and should not be used in production because
	- RID's are generated using the same algorithm as with smbpasswd
 	- a TDB can only have one key (w/o getting into problems) and we
	  need three.  Therefore the pdb_sam-getpwuid() and
	  pdb_getsampwrid() functions are interative searches :-(

    we need transaction support, multiple indexes, and a nice open
    source DBM.  The Berkeley DB (from sleepycat.com seems to fit
    this criteria now)

  o added a new parameter "private dir" as many places in the code were
    using lp_smb_passwd_file() and chopping off the filename part.
    This makes more sense to me and I will docuement it in the man pages

  o Ran through Insure-lite and corrected memory leaks.  Need for
    a public flogging this time Jeremy (-:



-- jerry
(This used to be commit 4792029a2991bd84251d152a62b1033dec62cee2)
2000-11-21 05:55:16 +00:00