1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

1900 Commits

Author SHA1 Message Date
Andrew Tridgell
29e36b7134 extracted the password change code from smbpasswd and used it in swat
instead of opening pipes and other horrible stuff.
(This used to be commit 49bf197103)
1998-11-12 07:06:48 +00:00
Herb Lewis
4dd4f1798e Added needed flag for swat password changing
I forgot to mention that the changes to swat were contributed by
John Sygulla
(This used to be commit aa0cec0470)
1998-11-11 21:41:44 +00:00
Jeremy Allison
b94520e424 Makefile.in: Added target for makeyodldocs - not used by default.
rpc_client/cli_reg.c: The perils of cut-n-paste coding include using variables before
                      they are initialised :-).
script/makeyodldocs.sh: Remove the intermediate files.
Jeremy.
(This used to be commit 88031bca5c)
1998-11-11 01:33:57 +00:00
Luke Leighton
1e1c2ec93c rpcclient registry commands.
(This used to be commit 36fcb4a6e6)
1998-11-10 19:05:00 +00:00
Luke Leighton
313d8ef27d util functions split into relevant modules, first pass.
(This used to be commit d448906e68)
1998-11-10 18:14:16 +00:00
Jeremy Allison
5c3295c16d Default for SMB_PASSWD program was set to smbpasswd ! This explained the problems
John & Andrew were having with smbpasswd. This would cause the smbpasswd
to be changed *twice* - this the second decrypt would fail.
Changed it to be "/bin/passwd" and changed the name of the macro
to PASSWORD_PROGRAM to make it clear this is not an smb password
changer.
Jeremy.
(This used to be commit 8c16253654)
1998-11-10 00:37:14 +00:00
Jeremy Allison
e4f974c611 Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.
client/client.c:
client/clitar.c:
include/client.h:
smbwrapper/smbw_dir.c:
smbwrapper/smbw_stat.c:
smbwrapper/smbw.c:
lib/util.c: Converted all use of 'mode' to uint16.
smbd/quotas.c: Fixed stupid comment bug I put in there :-(.
printing/printing.c: Fix from J.F. to new code.
Jeremy.
(This used to be commit bacd3e9d20)
1998-11-09 20:33:37 +00:00
Andrew Tridgell
8c62b28e0e converted smbclient to use clientgen.c rather than clientutil.c
I did this when I saw yet another bug report complaining about
smbclient intermittently missing files. Rather than applying more
patches to smbclient it was better to move to the more robust
clientgen.c code.

The conversion wasn't perfect, I probably lost some features of
smbclient while doing it, but at least smbclient should be consistent
now. It if fails it should _always_ fail rather than giving people the
false impression of a reliable utility.

the tar stuff seems to work, but hasn't had much testing as I never
use it myself. I'm sure someone will find bugs in my conversion of
smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It
now uses clientgen.c exclusively.

smbclient is still quite messy, but at least it doesn't build its own
SMB packets.

I haven't touched smbmount as I never use it. Mike, do you want to
convert smbmount to use clientgen.c?
(This used to be commit e14ca7765a)
1998-11-09 03:45:49 +00:00
Jeremy Allison
68d3842dc7 Added scripts/convert_smbpasswd to SCRIPTS
Jeremy.
(This used to be commit 60553b3dc2)
1998-11-05 02:58:37 +00:00
Jeremy Allison
01e04614c7 Makefile.in configure configure.in include/proto.h smbd/noquotas.c smbd/quotas.c:
Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>.
printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu>
utils/nmblookup.c: Fix usage() function.
smbd/reply.c: Split out the security=server and security=domain checks into
              check_server_security() and check_domain_security() to aid the
              writing of the 'hack' appliance mode invented by John Schimmel.
Jeremy.
(This used to be commit f09ab9b522)
1998-11-03 02:25:28 +00:00
Alexandre Oliva
e746555102 do not print garbage just because someone does not want dependencies :-)
(This used to be commit 7f3c96c5da)
1998-10-30 16:37:39 +00:00
Alexandre Oliva
610251a631 modify dependency tracking code so that it:
1) inserts the pathname of the object file in the dependency file
   (currently, gcc will only generate the basename)
2) the directory tree within .deps mirrors the source tree, so that we use
   shorter filenames
problem 1 was reported to me by Tom Angert <angert@bellsouth.net>
(This used to be commit 274a2cff30)
1998-10-29 17:55:58 +00:00
Christopher R. Hertel
377156cd75 This should have gone with the last batch.
Again, to compile debug2html, you need to do a 'make debug2html'.

Chris -)-----
(This used to be commit bd0c5ee8e7)
1998-10-28 20:35:27 +00:00
Christopher R. Hertel
e04759fbab Fixed a small bug in debug2html. It wasn't properly checking EOF. The
current status is "it works".  I need to add some syntax error recovery
and a usage message.  Basic stuff.

I've also modified Makefile.in.  If you want to compile it you'll have to
do a 'make debug2html', as I used smbtorture as a model.  We can decide
later if this tool is useful enough to be compiled always.

BTW, a 'make realclean' fails because the bin directory isn't empty.
That's because it doesn't delete optionally compiled files such as
smbtorture and debug2html (and because of the CVS subdirectory, but I
think that's only a problem for developers).

Chris -)-----
(This used to be commit e86fd87a38)
1998-10-27 23:28:29 +00:00
Andrew Tridgell
4586b8737a added a vsnprintf() implementation from cvslock. See the notes on the
license at the top of lib/snprintf.c

I've always been slightly uneasy about our half-baked vslprintf()
implementation and the risks on platforms that don't have vsnprintf()
so when I saw this code in another GPLd package I wanted it for Samba.
(This used to be commit e2cb50af45)
1998-10-26 23:40:33 +00:00
Tim Potter
f9881e8e74 Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode.
(This used to be commit 552175fdcb)
1998-10-24 06:23:02 +00:00
Andrew Tridgell
1e60cc49f5 don't enable smbsh/smbwrapper on systems where we can't work out how
to generate PIC code
(This used to be commit a66c56d70e)
1998-10-23 01:51:31 +00:00
Luke Leighton
a0512ce5ff rpctorture command
(This used to be commit b4ae65e2d0)
1998-10-22 22:19:08 +00:00
Andrew Tridgell
b19db1e749 fixes for solaris
(This used to be commit 235a8463b5)
1998-10-20 06:43:36 +00:00
Andrew Tridgell
bd52d5f513 removed my badly-done attempt at handling compilers that don't handle
-c and -o at the same time.

my shell script code wasn't portable
(This used to be commit 759c72822b)
1998-10-20 03:10:29 +00:00
Andrew Tridgell
f52b898a63 - added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once
(This used to be commit f1672d0557)
1998-10-19 01:00:33 +00:00
Luke Leighton
c404bb7754 rpcclient interactive login (with trust account changing if you are root)
cli_session_setup handles null sessions correctly
(This used to be commit 60c0f22a4e)
1998-10-15 23:51:07 +00:00
Andrew Tridgell
21aed50c09 made smbsh a standard binary
(This used to be commit aea466aef7)
1998-10-13 08:26:48 +00:00
Andrew Tridgell
60877fdd8d add "smbtorture" alias for building smbtorture
(This used to be commit 230e4eb3dd)
1998-10-08 06:19:29 +00:00
Andrew Tridgell
3d601dafe9 compile to .po.o first then mv to .po in order to make the sun
compilers happy
(This used to be commit 6625b69646)
1998-10-07 13:27:54 +00:00
Luke Leighton
c07b2bdf90 dce/rpc
(This used to be commit eb279cabd0)
1998-10-06 22:03:04 +00:00
Andrew Tridgell
01b838bfbb clean needs to delete po32 and .so files
(This used to be commit 969eb18064)
1998-10-05 23:34:50 +00:00
Andrew Tridgell
c7d3ad04f1 tell the user we are producing -32 code for the .32.so library
(This used to be commit e9676812af)
1998-10-05 23:31:55 +00:00
Andrew Tridgell
c2bcd64269 the IRIX make is very fussy amount comment lines. If a comment line
has a trailing \ then it continues the comment and wipes out the next
non-blank line!

be careful when commenting out bits of the Makefile
(This used to be commit 450b1813bf)
1998-10-05 23:30:27 +00:00
Luke Leighton
b4fb4caf90 rpcclient srvsvc commands.
(This used to be commit 1a9a22c657)
1998-10-05 15:41:41 +00:00
Andrew Tridgell
bfaff8ed1a got smbwrapper working on IRIX 6.4. Things got a bit tricky,
especially as the headers get the syscall numbers wrong!
(This used to be commit a5405f1ab0)
1998-10-05 12:17:01 +00:00
Andrew Tridgell
f151bf0694 fixed Makefile for IRIX make (it doesn't know %.o=%.po, leaving off
the % works)
(This used to be commit 7c4ad07b59)
1998-10-05 10:53:07 +00:00
Andrew Tridgell
fab6d20f5d new file realcalls.c
(This used to be commit 23f71b979a)
1998-10-05 08:42:22 +00:00
Alexandre Oliva
8327eeabfb just try to rmdir bin after removing bin/.dummy, in realclean
(This used to be commit ef9eca92bb)
1998-10-05 03:44:12 +00:00
Andrew Tridgell
d6da5e4e9d it's a bit dangerous to use rm -rf
(This used to be commit 102e8c85ff)
1998-10-05 03:24:08 +00:00
Alexandre Oliva
601e5b30b5 rm object files created by mkdir probes
make sure it works even if clobbering is not allowed
(This used to be commit eff11b81fd)
1998-10-05 02:56:31 +00:00
Alexandre Oliva
02b6c4eff2 Speed up directory creation for the common case (i.e., it exists already)
Link $(LIBS) in when creating smbwrapper.so

rm -rf bin in distclean

rm smbwrapper files in realclean

remove .h from .SUFFIXES
(This used to be commit a38e7ea04a)
1998-10-05 00:43:48 +00:00
Alexandre Oliva
06eaf71e43 bin/cvsignore: deleted, so that bin can be removed from the repository
.cvsignore: added bin; it is no longer part of the source tree

smbwrapper/smbsh: now auto-generated from smbsh.in
smbwrapper/.cvsignore: added smbsh

configure.in: generate @builddir@
configure, include/stamp-h.in: regen

Makefile.in: new target `smbwrapper'; sped up directory creation
(This used to be commit 8f95ee8fc3)
1998-10-04 22:42:05 +00:00
Alexandre Oliva
11c5c17668 Avoid the message `make: [.deps/.P] Error 1 (ignored)'
(This used to be commit 9ba19d19ad)
1998-10-04 20:54:05 +00:00
Andrew Tridgell
4f31812714 fixed some stuff for Linux that porting to Solaris broke
(This used to be commit ee349bb329)
1998-10-04 14:56:19 +00:00
Andrew Tridgell
3a8232644e started basic support for solaris 2.5 in smbwrapper.
(This used to be commit e5c7cabae4)
1998-10-04 14:02:50 +00:00
Andrew Tridgell
57a58f592b more smbw cleanups.
- cleaned up prototyping. Unfortunately we can't auto-prototype
  wrapped.c because it replaces system functions.
- split stat functions into smbw_stat.c
(This used to be commit 04e92e692e)
1998-10-04 04:33:56 +00:00
Andrew Tridgell
819a6785b3 simplied the layout of the smbwrapper code. All those 3 line files
were getting unwieldy
(This used to be commit a59d4e93da)
1998-10-04 01:36:40 +00:00
Andrew Tridgell
1fa3478aaf drat.
on Linux 2.0 libc detects the lack of getdents in the kernel and used
opendir() etc. so we need to implement those ...

it would be needed for a port to others OSes anyway I suppose.
(This used to be commit e3fd861590)
1998-10-03 16:34:57 +00:00
Andrew Tridgell
86701c6a3c added fchdir() support
(This used to be commit a42729dbf5)
1998-10-03 15:28:47 +00:00
Andrew Tridgell
4d9ab2add2 support getcwd() in smbwrapper
(This used to be commit d516ee383c)
1998-10-03 13:58:07 +00:00
Andrew Tridgell
aa7aacacab added mkdir() and rmdir() support
(This used to be commit ce748e5ea9)
1998-10-03 13:27:56 +00:00
Andrew Tridgell
c0dd3c5c5c added lseek
(This used to be commit 2fbb544d38)
1998-10-03 11:51:01 +00:00
Andrew Tridgell
909ca3a887 added basic chmod(), chown() and utime() support (not fully
implemented).

this is enough to be able to edit files using emacs on the smbwrapper
filesystem
(This used to be commit e5c3f36ef2)
1998-10-03 10:24:49 +00:00
Andrew Tridgell
cce5f09a90 added unlink() and rename() support to smbwrapper
(This used to be commit b85d961447)
1998-10-03 09:39:11 +00:00
Andrew Tridgell
2abaffe61a - remove .p files in make clean
- added readlink support to smbwrapper
(This used to be commit 4b5217f996)
1998-10-03 08:27:39 +00:00
Luke Leighton
732d4ff7da Makefile.in :
- added srvsvc client files

clientgen.c :

	- replaced cli_error(cli, int *cls, int *err) with
	  cli_error(cli, uint8 cls, uint32 *err).  this version detects
	  32 bit status messages.  the DOS error "MORE_DATA", the
	  equivalent of the 32 bit *warning* 0x8000 0005
	  (STATUS_BUFFER_OVERFLOW), was being processed as an error,
	  terminating the cli_receive_trans() call.

cli_pipe.c :

	- replaced calls that had been incorrectly modified from
	  32 bit warnings (0x8000 0005 - STATUS_BUFFER_OVERFLOW)
	  to 8 bit DOS errors (0x01 0xEA - MORE_DATA).
	  the use of the old version of cli_error (DOS only)
	  instead of the new one (DOS and 32 bit) caused the
	  dce/rpc client code to fail.

	- replaced 2 space indentation with tab indentation in all functions.

cli_srvsvc.c :
cmd_srvsvc.c :

	- added these files back in, fixing them up to use jeremy's
	  modified versions of the dce/rpc client functions.

parse_srv.c :

	- added back in some "unused" functions required by dce/rpc
	  client-side code.  it would be helpful if all such "unused"
	  functions could be added back in.

rpcclient.c :

	- added "session", "file", "share", "connection" enumeration
	  functions back in.  these are equivalent to nt's "NetXXXXXEnum"
	  Win32 (MSDN) functions.

	- added "srvinfo" function back in.  this is equivalent to
	  nt's NetServerGetInfo Win32 (MSDN) function.
(This used to be commit bcf39ffdcc)
1998-10-02 21:09:23 +00:00
Andrew Tridgell
643e95f8e9 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
(This used to be commit 686182eb71)
1998-10-02 12:33:44 +00:00
Alexandre Oliva
c393bb69de fix directory creation mechanism; the optimized version would not work :-(
(This used to be commit 796475ad5a)
1998-09-29 05:16:20 +00:00
Alexandre Oliva
6ec9f5d171 optimize creation of directories in build tree
ensure that bin exists when needed
(This used to be commit 87b3e4347a)
1998-09-29 05:05:46 +00:00
Alexandre Oliva
a2d7f765e8 get away with dummy and .dummy files
(This used to be commit 90a8a02484)
1998-09-29 04:52:17 +00:00
Michael Warfield
cdaa53e3ef Two changes in this ball...
1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on
both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems.

2) Changes to Makefile.in and configure.in (and subsequently configure) are to
configure for smbmount, smbumount, and smbmnt to compile.

This adds a "--with(out)-smbmount" option to configure.  Sanity checking is
not present yet.  You can specify this if you are not on linux, it just
won't compile.
(This used to be commit 8a4730f619)
1998-09-28 19:18:21 +00:00
Alexandre Oliva
cf971f88ac automated generation of .dummy files for each subdirectory;
dummy.in files are no longer needed, and new directories will be taken
care of automatically, at configure (or config.status --recheck) time
(This used to be commit 237a8e5fe6)
1998-09-28 00:14:36 +00:00
Jeremy Allison
b053652d49 Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy.
(This used to be commit 548634915f)
1998-09-26 03:30:15 +00:00
Jeremy Allison
5f7ee36056 Makefile.in: Fixed bug with continuation line causing proto to fail.
Added $(PROGS) $(SPROGS) as targets for make clean.
acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES.
configure.in: Added sys/capability.h header check.
              Added function checks for srandom random srand rand.
              Added HAVE_IRIX_SPECIFIC_CAPABILITIES test.
includes.h: Added #include <sys/capability.h>.
ntdomain.h: Moved struct acct_info into here from smb.h
smb.h: Added KERNEL_OPLOCK_CAPABILITY define.
       Moved enum action_type into rpcclient.h
       Moved struct cli_state into client.h
       Moved struct nt_client_info, struct tar_client_info, struct client_info
             into rpcclient.h
lib/genrand.c: Changed to use sys_random() & friends.
lib/smbrun.c: Lose capabilities after fork.
lib/system.c: Added set_process_capability(), set_inherited_process_capability()
              sys_random(), sys_srandom().
lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an
            32 bit mounted NFS filesystem.
nmbd/nmbd.c: Changed to use sys_random() & friends.
nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends.
passdb/ldap.c: Missed one pdb_encode_acct_ctrl call.
passdb/passdb.c: Changed to Ander's code for ' ' characters.
passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ.
script/mkproto.awk: Added 'long' to prototypes.
smbd/chgpasswd.c: Lose capabilities after fork.
smbd/open.c: Do the mmap *after* the kernel oplock.
smbd/oplock.c: Removed stub code from kernel oplock path.
               Added set_process_capability(), set_inherited_process_capability() calls.
smbd/reply.c: Initialize count = 0, offset = 0.
smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls.
tests/summary.c: Ensure we have RANDOM or RAND.
utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ.
utils/torture.c: Changed to use sys_random() & friends.

Jeremy.
(This used to be commit e8be306f23)
1998-09-25 23:40:49 +00:00
Luke Leighton
6fb5804b28 added in samr commands. assistance in returning the missing functions,
automatically removed because they were "unused", would be appreciated.
(This used to be commit d0f7b0d915)
1998-09-25 22:20:05 +00:00
Luke Leighton
ff07b2e4a3 added wksinfo command to rpcclient, which don't work too good.
(This used to be commit 8d23da91cb)
1998-09-25 21:20:37 +00:00
Luke Leighton
66d5d73a5d added rpcclient program
(This used to be commit aa38f39d67)
1998-09-25 21:01:52 +00:00
Alexandre Oliva
6de1659640 check whether system type is the same as stored in the cache (full
stand-alone macro, candidate for inclusion in the next release of autoconf)

create configure flag --enable-maintainer-mode, that enables automatic
rebuilding of configure from configure.in and aclocal.m4, and of
config.h.in based on acconfig.h.  This assumes autoconf and autoheader
are available.  Maintainer mode also introduces automatic dependency
tracking of include files, but it depends on features provided by gcc
and GNU make, so you must not enable maintainer mode if you are not
using any of these
(This used to be commit 64cba1cc8e)
1998-09-24 08:34:21 +00:00
Andrew Tridgell
e5948ffd7f automatically detect changes in the system type and exit, telling
the user to remove config.cache
(This used to be commit f123172c42)
1998-09-24 04:52:40 +00:00
Andrew Tridgell
e59d7a7f80 some changes to the autoconf support
- added config.cache to "make clean". We get two many bug reports from
  people builing on multiple architectures who don't remove config.cache
  between compiles. Hopefully a future version of autoconf will do
  this automatically

- removed the targets that run autoconf and autoheader. There is far
  too great a risk of a enduser getting a error "autoheader not found"
  if the date on a file is changed. Samba developers will have to run
  autoconf and autoheader manually (as before)
(This used to be commit 811fe3b174)
1998-09-24 01:12:43 +00:00
Alexandre Oliva
ac39ce3eba replace getpass() with getsmbpass() if getsmbpass.c compiles
(This used to be commit 9a5bdf5c1b)
1998-09-21 11:34:44 +00:00
Alexandre Oliva
e649750cb4 major autoconf clean-up
fix problems in builds with srcdir!=builddir
(This used to be commit 1ffc3b807a)
1998-09-21 09:07:08 +00:00
Andrew Tridgell
e9ea36e4d2 tridge the destroyer returns!
prompted by the interpret_security() dead code that Jean-Francois
pointed out I added a make target "finddead" that finds potentially
dead (ie. unused) code. It spat out 304 function names ...

I went through these are deleted many of them, making others static
(finddead also reports functions that are used only in the local
file).

in doing this I have almost certainly deleted some useful code. I may
have even prevented compilation with some compile options. I
apologise. I decided it was better to get rid of this code now and add
back the one or two functions that are needed than to keep all this
baggage.

So, if I have done a bit too much "destroying" then let me know. Keep
the swearing to a minimum :)

One bit I didn't do is the ubibt code. Chris, can you look at that?
Heaps of unused functions there. Can they be made static?
(This used to be commit 2204475c87)
1998-09-05 05:07:05 +00:00
Andrew Tridgell
998db177ba finished the asynchronous browse synchronisation code. It even seems
to work (not a lot of testing yet though).

Now we just need to deal with people worried about having more than
two nmbd processes sometimes. (the async processes are created on
demand for browse sync, so you'll only see more than 2 occasionally)
(This used to be commit a350a54680)
1998-08-30 15:58:17 +00:00
John Terpstra
2aa4ae7311 Fix "make clean" to also delete SPROGS.
(This used to be commit 268cbede0f)
1998-08-21 08:21:08 +00:00
Jeremy Allison
12de4034c7 Makefile.in: Moved blocking lock code into smbd/blocking.c for link purposes.
include/includes.h: Added nterr.h.
locking/locking.c: Moved blocking lock code into smbd/blocking.c for link purposes.
smbd/close.c: Added blocking lock removal to file close.
smbd/filename.c: Tidied up unix_convert() so I could read it (:-) in preparation
                 for the stat_cache code.
smbd/nttrans.c: Added WRITE_ATTRIBUTES check.
smbd/reply.c: Fixed multibyte char problem in wildcard mask.
Jeremy.
(This used to be commit 148eaba3da)
1998-08-19 01:49:34 +00:00
Andrew Tridgell
c3effa8b59 this completes the splitup of server.c.
the splitup was done with an axe, not a scalpel, so there are some
rough edges. I mostly wanted to get the general form right with fine
tuning of what goes where to come later. Still, this is better than
what we had before where server.c was a general repository for
anything that didn't fit elsewhere.
(This used to be commit a6d194886a)
1998-08-17 13:11:34 +00:00
Andrew Tridgell
0922615405 more splitting of server.c
created dosmode.c and filename.c
(This used to be commit 534a90ca44)
1998-08-17 07:40:06 +00:00
Andrew Tridgell
4c5c26b1ef now that we have no global arrays we can start to split up the monster
server.c without breaking things.

this splits off netprot.c and fileio.c for negprot and read/write/seek
handling respectively.
(This used to be commit b3d7014643)
1998-08-17 07:15:54 +00:00
Andrew Tridgell
983dc71c98 moved connection_struct handling code into smbd/conn.c and changed it
to a linked list with bitmap format.
(This used to be commit b7aaab1b6b)
1998-08-17 06:13:32 +00:00
Andrew Tridgell
739d0b1ddc got rid of the Files[] array completely (previously I'd just made it
private to files.c)

It now is a doubly linked list with a bitmap for allocated file
numbers. Similarly for the fd_ptr code. I also changed the default
maximum number of open files to 4096. The static cost is 1 bit per
file.

It all seems to work, and it passes the "does Sue scream" test, but if
you see weird behaviour then please investigate. With the volume of
new code that has gone in there are bound to be one or two bugs
lurking.

note that you must do a "make clean" before building this as many data
structures have changed in size.
(This used to be commit 79755ce970)
1998-08-16 04:08:47 +00:00
Andrew Tridgell
127655cc88 this checkin gets rid of the global Files[] array and makes it local
in files.c

it should now be faily easy to expand the default MAX_OPEN_FILES to
many thousands.
(This used to be commit b088c804f9)
1998-08-15 07:27:34 +00:00
Andrew Tridgell
570f8e9a77 moved the printing related files to a separate printing/ directory.
(This used to be commit d933a47be6)
1998-08-15 03:26:52 +00:00
Andrew Tridgell
b9623ab59e this is the bug change to using connection_struct* instead of cnum.
Connections[] is now a local array in server.c

I might have broken something with this change. In particular the
oplock code is suspect and some .dll files aren't being oplocked when
I expected them to be. I'll look at it after I've got some sleep.
(This used to be commit c7ee025ead)
1998-08-14 17:38:29 +00:00
Jeremy Allison
3cf6cc6134 Makefile.in: Changed so that make proto will work with ldap & nisplus.
locking/locking.c: Made #ifdef'ed out functions static for Make proto.
lib/util.c: Re-instated old mask_match code for UNIX filesystem checks
            only. Client calls use the new mask_match code. Changed the
            name of the old function to unix_mask_match.
Jeremy.
(This used to be commit b68e756ff5)
1998-08-14 02:02:40 +00:00
Herb Lewis
510bcdc0a0 move smbd/print_svid.o from SMBD_OBJ1 to PARAM_OBJ so that nmbd, swat, etc.
will link when SYSV is defined. We may want to restructure this later and
move this to param instead of smbd ???
(This used to be commit 3eff609b7a)
1998-08-13 17:38:26 +00:00
Jeremy Allison
9042aa41c3 Makefile.in: Added CHECK target back in (at Herb's request). Added
manpath in (although we don't currently use it).
client/client.c: Added John Blair's fixes for "put -".
include/nterr.h: Added NT_STATUS_NOTIFY_ENUM_DIR error code.
smbd/nttrans.c: Added in devious fix for one-shot NT change notify bug.
Jeremy.
(This used to be commit 4ac3091e57)
1998-08-11 02:13:01 +00:00
Jeremy Allison
17fb3a2304 Makefile.in: Fixed make clean bug with CVS directory in bin/.
include/smb.h: Fixed bugs in Debug macro's with SGI compiler.
smbd/trans2.c: Fixed bug reported by Zoltan Palmai <ZSPA@chevron.com>
               PR#8903 where get_lanman2_dir_entry() could return a
               mangled name as a resume key and call_trans2findnext()
               wasn't doing the same.
Jeremy.
(This used to be commit 9d010e721c)
1998-08-10 20:12:53 +00:00
Andrew Tridgell
670c6addc3 moved access.c into lib/ from smbd/ as it is needed by testparm. I
modified it not to need any smbd specific structures and instead pass
things from smbd.
(This used to be commit 162141d3b3)
1998-08-10 07:29:57 +00:00
Andrew Tridgell
fa88efbbac split the system password checking routines out of smbd/password.c and
into passdb/pass_check.c. This means SWAT no longer needs to link to
smbd/password.c
(This used to be commit 90d93889d7)
1998-08-10 07:04:53 +00:00
Andrew Tridgell
bad66abfe7 moved username.c into lib/ so we no longer $(PASSDB_OBJ) in most
utilities
(This used to be commit 745d38bfe7)
1998-08-10 05:22:10 +00:00
Andrew Tridgell
89a6525b3c smbtorture now compiles
(This used to be commit 12c8028eb4)
1998-08-10 02:01:18 +00:00
Andrew Tridgell
1c6f52cc28 fixed the installation scripts for the new layout
(This used to be commit 60cdb83f3f)
1998-08-10 01:55:42 +00:00
Andrew Tridgell
65a29b0ca5 the rest of the binaries now compile and link
(This used to be commit 7fecc3d5a2)
1998-08-10 01:25:32 +00:00
Andrew Tridgell
59e2e2c7d8 a few more things compile.
I'll do the rest tomorrow.
(This used to be commit b92ce41c54)
1998-08-09 14:58:51 +00:00
Andrew Tridgell
723b9d0d5b swat compiles, with some even uglier hacks. we really have to do
something about our dependencies between seemingly unrelated code.
(This used to be commit 3ecfd271de)
1998-08-09 14:37:32 +00:00
Andrew Tridgell
19c965894d nmbd compiles and links. I had to do some ugly stuff, putting files in
illogical places. Once I get everything compiled these will need to be
revisited, but at least the new Makefile.in makes it really obvious
what is out of place.
(This used to be commit beef5341fc)
1998-08-09 14:20:02 +00:00
Andrew Tridgell
ea6a257fca close to having nmbd linking (just a bit of repository hacking to go)
(This used to be commit 34dd9b7945)
1998-08-09 14:08:42 +00:00
Andrew Tridgell
35f815d278 this gets smbd compiling and linking correctly with the new layout.
(This used to be commit d08fa39cec)
1998-08-09 13:25:34 +00:00
Andrew Tridgell
963e96f3a9 added --with-nisplus-home option
(This used to be commit 70000c2190)
1998-08-08 01:15:14 +00:00
Christopher R. Hertel
ebd415c03f This is the checkin of the debug changes.
Makefile.in:  I've added debug.o.
  proto.h    :  Rebuilt, as is standard for these sorts of things.
  smb.h      :  New macros, etc.
  util.c     :  Debug code removed.

I'll check in debug.c in the next step.

Chris -)-----
(This used to be commit 653c17c1b8)
1998-07-31 20:16:35 +00:00
Jeremy Allison
7284bb5ca0 Makefile.in: Moved UBIQX stuff into UTILOBJ.
loadparm.c: Added "ole locking compatibility" option (default "true").
locking.c: Changes to implement union in files_struct.
locking_shm.c: Changes to implement union in files_struct.
nttrans.c: Made opening a directory explicit (we have to).
           Added create directory code for nttrans.
reply.c: Changes to implement union in files_struct.
server.c: Changes to implement union in files_struct. Added create directory code.
trans2.c: Changes to implement union in files_struct.
smb.h: Changes to implement union in files_struct.
util.c: Changed linked list code to UNIQX linked list. This will make
        the other lists I need to implement for ChangeNotify and blocking
        locks easier.
Jeremy.
(This used to be commit 3a5eea850b)
1998-07-30 21:18:57 +00:00
Andrew Tridgell
b08931b552 fixed a make proto bug pointed out by Chris.
(This used to be commit fc1947b52a)
1998-07-30 01:49:58 +00:00
Andrew Tridgell
64578c0589 merge from the autoconf2 branch to the main branch
(This used to be commit 3bda7ac417)
1998-07-29 03:08:05 +00:00