1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

83 Commits

Author SHA1 Message Date
Luke Leighton
b4ae65e2d0 rpctorture command -
Andrew Tridgell
235a8463b5 fixes for solaris -
Andrew Tridgell
759c72822b 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
-
Andrew Tridgell
f1672d0557 - added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once
-
Luke Leighton
60c0f22a4e rpcclient interactive login (with trust account changing if you are root)
cli_session_setup handles null sessions correctly
-
Andrew Tridgell
aea466aef7 made smbsh a standard binary -
Andrew Tridgell
230e4eb3dd add "smbtorture" alias for building smbtorture -
Andrew Tridgell
6625b69646 compile to .po.o first then mv to .po in order to make the sun
compilers happy
-
Luke Leighton
eb279cabd0 dce/rpc -
Andrew Tridgell
969eb18064 clean needs to delete po32 and .so files -
Andrew Tridgell
e9676812af tell the user we are producing -32 code for the .32.so library -
Andrew Tridgell
450b1813bf 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
-
Luke Leighton
1a9a22c657 rpcclient srvsvc commands. -
Andrew Tridgell
a5405f1ab0 got smbwrapper working on IRIX 6.4. Things got a bit tricky,
especially as the headers get the syscall numbers wrong!
-
Andrew Tridgell
7c4ad07b59 fixed Makefile for IRIX make (it doesn't know %.o=%.po, leaving off
the % works)
-
Andrew Tridgell
23f71b979a new file realcalls.c -
Alexandre Oliva
ef9eca92bb just try to rmdir bin after removing bin/.dummy, in realclean -
Andrew Tridgell
102e8c85ff it's a bit dangerous to use rm -rf -
Alexandre Oliva
eff11b81fd rm object files created by mkdir probes
make sure it works even if clobbering is not allowed
-
Alexandre Oliva
a38e7ea04a 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
-
Alexandre Oliva
8f95ee8fc3 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
-
Alexandre Oliva
9ba19d19ad Avoid the message `make: [.deps/.P] Error 1 (ignored)' -
Andrew Tridgell
ee349bb329 fixed some stuff for Linux that porting to Solaris broke -
Andrew Tridgell
e5c7cabae4 started basic support for solaris 2.5 in smbwrapper. -
Andrew Tridgell
04e92e692e 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
-
Andrew Tridgell
a59d4e93da simplied the layout of the smbwrapper code. All those 3 line files
were getting unwieldy
-
Andrew Tridgell
e3fd861590 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.
-
Andrew Tridgell
a42729dbf5 added fchdir() support -
Andrew Tridgell
d516ee383c support getcwd() in smbwrapper -
Andrew Tridgell
ce748e5ea9 added mkdir() and rmdir() support -
Andrew Tridgell
2fbb544d38 added lseek -
Andrew Tridgell
e5c3f36ef2 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
-
Andrew Tridgell
b85d961447 added unlink() and rename() support to smbwrapper -
Andrew Tridgell
4b5217f996 - remove .p files in make clean
- added readlink support to smbwrapper
-
Luke Leighton
bcf39ffdcc 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.
-
Andrew Tridgell
686182eb71 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
-
Alexandre Oliva
796475ad5a fix directory creation mechanism; the optimized version would not work :-( -
Alexandre Oliva
87b3e4347a optimize creation of directories in build tree
ensure that bin exists when needed
-
Alexandre Oliva
90a8a02484 get away with dummy and .dummy files -
Michael Warfield
8a4730f619 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.
-
Alexandre Oliva
237a8e5fe6 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
-
Jeremy Allison
548634915f Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy.
-
Jeremy Allison
e8be306f23 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.
-
Luke Leighton
d0f7b0d915 added in samr commands. assistance in returning the missing functions,
automatically removed because they were "unused", would be appreciated.
-
Luke Leighton
8d23da91cb added wksinfo command to rpcclient, which don't work too good. -
Luke Leighton
aa38f39d67 added rpcclient program -
Alexandre Oliva
64cba1cc8e 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
-
Andrew Tridgell
f123172c42 automatically detect changes in the system type and exit, telling
the user to remove config.cache
-
Andrew Tridgell
811fe3b174 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)
-
Alexandre Oliva
9a5bdf5c1b replace getpass() with getsmbpass() if getsmbpass.c compiles -