Andrew Tridgell [Mon, 5 Oct 1998 09:23:46 +0000 (09:23 +0000)]
this gets it compiling under IRIX 6.4. Doesn't work yet though.
Andrew Tridgell [Mon, 5 Oct 1998 09:01:49 +0000 (09:01 +0000)]
test for creat64()
Andrew Tridgell [Mon, 5 Oct 1998 08:54:55 +0000 (08:54 +0000)]
handle systems that are missing either SYS_utime or SYS_utimes
Andrew Tridgell [Mon, 5 Oct 1998 08:44:46 +0000 (08:44 +0000)]
ported smbwrapper to SunOS4. It seems to work. pity so many binaries on
my SunOS box are statically linked.
Andrew Tridgell [Mon, 5 Oct 1998 08:42:41 +0000 (08:42 +0000)]
fixed typo in getgroups code
Andrew Tridgell [Mon, 5 Oct 1998 08:42:22 +0000 (08:42 +0000)]
new file realcalls.c
John Terpstra [Mon, 5 Oct 1998 06:55:53 +0000 (06:55 +0000)]
Added rpcclient and smbwrapper stuff.
Andrew Tridgell [Mon, 5 Oct 1998 06:17:08 +0000 (06:17 +0000)]
IRIX uses -shared for shared libray creation.
Andrew Tridgell [Mon, 5 Oct 1998 06:09:44 +0000 (06:09 +0000)]
need to use SYS_open64 not _open64 for solaris 2.6 or stdio doesn't
work right.
Andrew Tridgell [Mon, 5 Oct 1998 04:58:33 +0000 (04:58 +0000)]
got rid of all assembly code and gcc special features. I'm hoping to
get smbsh working with the normal sun compiler
Alexandre Oliva [Mon, 5 Oct 1998 04:53:28 +0000 (04:53 +0000)]
added Solaris 2.5
Andrew Tridgell [Mon, 5 Oct 1998 03:56:09 +0000 (03:56 +0000)]
updated README
Andrew Tridgell [Mon, 5 Oct 1998 03:53:25 +0000 (03:53 +0000)]
get type of callback right
Andrew Tridgell [Mon, 5 Oct 1998 03:52:57 +0000 (03:52 +0000)]
test for loff_t and offset_t to support llseek() on Solaris and Linux.
Alexandre Oliva [Mon, 5 Oct 1998 03:44:39 +0000 (03:44 +0000)]
revert 64-bit file support; it's hard-coded already
Alexandre Oliva [Mon, 5 Oct 1998 03:44:12 +0000 (03:44 +0000)]
just try to rmdir bin after removing bin/.dummy, in realclean
Andrew Tridgell [Mon, 5 Oct 1998 03:24:08 +0000 (03:24 +0000)]
it's a bit dangerous to use rm -rf
Alexandre Oliva [Mon, 5 Oct 1998 02:56:31 +0000 (02:56 +0000)]
rm object files created by mkdir probes
make sure it works even if clobbering is not allowed
Andrew Tridgell [Mon, 5 Oct 1998 02:55:53 +0000 (02:55 +0000)]
removed requirement of having a smb.conf for smbwrapper to work.
Andrew Tridgell [Mon, 5 Oct 1998 02:45:50 +0000 (02:45 +0000)]
handle ENOTDIR errno in cli_error()
Andrew Tridgell [Mon, 5 Oct 1998 02:31:39 +0000 (02:31 +0000)]
- added pread pread64 pwrite pwrite64 and open64
- fixed utime() for null tbuf
Alexandre Oliva [Mon, 5 Oct 1998 02:19:09 +0000 (02:19 +0000)]
added 64-bit file support
Andrew Tridgell [Mon, 5 Oct 1998 02:14:19 +0000 (02:14 +0000)]
added pread pread64 pwrite pwrite64 and open64
Andrew Tridgell [Mon, 5 Oct 1998 01:57:03 +0000 (01:57 +0000)]
added a function set_maxfiles() to set our file rlimit to the max
possible and return the max.
Andrew Tridgell [Mon, 5 Oct 1998 01:42:46 +0000 (01:42 +0000)]
this gets smbwrapper working under Solaris 2.6. Not tested much yet.
Andrew Tridgell [Mon, 5 Oct 1998 01:25:39 +0000 (01:25 +0000)]
tests for readdir64
Andrew Tridgell [Mon, 5 Oct 1998 00:50:41 +0000 (00:50 +0000)]
reran autoconf
Andrew Tridgell [Mon, 5 Oct 1998 00:48:59 +0000 (00:48 +0000)]
some tests for stat64() and friends
Alexandre Oliva [Mon, 5 Oct 1998 00:43:48 +0000 (00:43 +0000)]
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
Andrew Tridgell [Mon, 5 Oct 1998 00:32:09 +0000 (00:32 +0000)]
don't define creat() under linux until we get the CREAT_BITS stuff
sorted out.
Andrew Tridgell [Sun, 4 Oct 1998 23:47:02 +0000 (23:47 +0000)]
we need to use __readdir() in preference to SYS_readdir for systems
that use getdents.
Alexandre Oliva [Sun, 4 Oct 1998 22:42:05 +0000 (22:42 +0000)]
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 [Sun, 4 Oct 1998 20:54:05 +0000 (20:54 +0000)]
Avoid the message `make: [.deps/.P] Error 1 (ignored)'
Andrew Tridgell [Sun, 4 Oct 1998 16:03:32 +0000 (16:03 +0000)]
drat. We can't include sys/fcntl.h because that gives
conflicts. Instead use "01101" for O_CREAT|O_WRONLY|O_TRUNC.
uggh.
Andrew Tridgell [Sun, 4 Oct 1998 15:54:04 +0000 (15:54 +0000)]
more solaris 2.5 fixups. It now seems to be working pretty well.
Andrew Tridgell [Sun, 4 Oct 1998 15:02:32 +0000 (15:02 +0000)]
ignore .po files
Andrew Tridgell [Sun, 4 Oct 1998 15:02:15 +0000 (15:02 +0000)]
warn user if LIBDIR isn't set right
Andrew Tridgell [Sun, 4 Oct 1998 14:56:19 +0000 (14:56 +0000)]
fixed some stuff for Linux that porting to Solaris broke
Andrew Tridgell [Sun, 4 Oct 1998 14:07:18 +0000 (14:07 +0000)]
don't list the IPC$ share in directory listings (it causes infinite
recursion)
Andrew Tridgell [Sun, 4 Oct 1998 14:02:50 +0000 (14:02 +0000)]
started basic support for solaris 2.5 in smbwrapper.
Andrew Tridgell [Sun, 4 Oct 1998 12:00:40 +0000 (12:00 +0000)]
- modified resolve_name() to take a name_type
- cleaned up resolve_name() (split into separate functions for each resolver)
- if can't find local master then use #1B name
- support listing of foreign workgroups in /smb/
Andrew Tridgell [Sun, 4 Oct 1998 11:25:06 +0000 (11:25 +0000)]
support NetServerEnum in smbwrapper. You can now do a ls in /smb/ and
it will list all servers in your workgroup. You can set your workgroup
with the SMBW_WORKGROUP environment variable.
Andrew Tridgell [Sun, 4 Oct 1998 10:48:31 +0000 (10:48 +0000)]
support using #xx at end of netbios name to connect to the specified name type
Andrew Tridgell [Sun, 4 Oct 1998 10:46:52 +0000 (10:46 +0000)]
use *SMBSERVER convention in smbwrapper to allow us to connect to
servers that we don't know the netbios name of.
Andrew Tridgell [Sun, 4 Oct 1998 10:14:21 +0000 (10:14 +0000)]
add support for unlink() on printer shares in smbwrapper. unlink()
will remove the job from the pirnt queue.
Andrew Tridgell [Sun, 4 Oct 1998 09:42:51 +0000 (09:42 +0000)]
added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname"
You can list the current printqueue using ls
Andrew Tridgell [Sun, 4 Oct 1998 07:52:00 +0000 (07:52 +0000)]
add support for dup() and dup2()
Andrew Tridgell [Sun, 4 Oct 1998 07:51:34 +0000 (07:51 +0000)]
use CLI_BUFFER_SIZE instead of BUFFER_SIZE
Andrew Tridgell [Sun, 4 Oct 1998 07:50:44 +0000 (07:50 +0000)]
set a default 16k client buffer size
Richard Sharpe [Sun, 4 Oct 1998 07:09:38 +0000 (07:09 +0000)]
Added E Jay Berkenbilt's fixes
Andrew Tridgell [Sun, 4 Oct 1998 06:44:20 +0000 (06:44 +0000)]
refuse symlinks to or from a smb path
Andrew Tridgell [Sun, 4 Oct 1998 06:43:41 +0000 (06:43 +0000)]
fix an error code in cli_error()
Andrew Tridgell [Sun, 4 Oct 1998 06:22:08 +0000 (06:22 +0000)]
modified cli_read() and cli_write() to issue multiple outstanding
read/write requests for large reads. up to max_mux requests may be
outstanding. This gives _much_ better throughput and should allow
smbsh to saturate just about any network.
this is an implementation of the "fast SMB" method I described on the
CIFS list a couple of months back.
Andrew Tridgell [Sun, 4 Oct 1998 04:48:17 +0000 (04:48 +0000)]
use dummy file descriptors opened on /dev/null to ensure that the smbw
file descriptor allocation order is identical to the kernels.
Andrew Tridgell [Sun, 4 Oct 1998 04:33:56 +0000 (04:33 +0000)]
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 [Sun, 4 Oct 1998 03:28:43 +0000 (03:28 +0000)]
- split smbw directory code into smbw_dir.c
- fixed a bug in the handling of multiple connections to different
servers
Andrew Tridgell [Sun, 4 Oct 1998 03:27:29 +0000 (03:27 +0000)]
support a few more function types (like ino_t and off_t)
Andrew Tridgell [Sun, 4 Oct 1998 03:27:04 +0000 (03:27 +0000)]
use const char
Andrew Tridgell [Sun, 4 Oct 1998 01:36:40 +0000 (01:36 +0000)]
simplied the layout of the smbwrapper code. All those 3 line files
were getting unwieldy
Andrew Tridgell [Sun, 4 Oct 1998 01:10:18 +0000 (01:10 +0000)]
we need to do a load_interfaces() at startup to support broadcast
resolution of names.
Andrew Tridgell [Sat, 3 Oct 1998 16:40:32 +0000 (16:40 +0000)]
use __XXXdir() instead of __libc_XXXdir()
Andrew Tridgell [Sat, 3 Oct 1998 16:34:57 +0000 (16:34 +0000)]
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 [Sat, 3 Oct 1998 15:55:18 +0000 (15:55 +0000)]
fixed a authentication problem with non-encrypting servers
Andrew Tridgell [Sat, 3 Oct 1998 15:45:29 +0000 (15:45 +0000)]
fixed initialisation bug in rpcclient (stdout is not a constant)
Andrew Tridgell [Sat, 3 Oct 1998 15:29:39 +0000 (15:29 +0000)]
don't call functions that aren't there yet. (Luke had the code
commented out in the makefile)
Andrew Tridgell [Sat, 3 Oct 1998 15:28:47 +0000 (15:28 +0000)]
added fchdir() support
Andrew Tridgell [Sat, 3 Oct 1998 15:01:11 +0000 (15:01 +0000)]
fixed vi on smbwrappper (it was a problem in cli_read())
Andrew Tridgell [Sat, 3 Oct 1998 14:46:48 +0000 (14:46 +0000)]
fixed wrapper for access(). This gets xedit working.
Andrew Tridgell [Sat, 3 Oct 1998 13:58:07 +0000 (13:58 +0000)]
support getcwd() in smbwrapper
Andrew Tridgell [Sat, 3 Oct 1998 13:27:56 +0000 (13:27 +0000)]
added mkdir() and rmdir() support
Andrew Tridgell [Sat, 3 Oct 1998 13:12:08 +0000 (13:12 +0000)]
added simple device/inode number support based on a checksum of the
filename
Andrew Tridgell [Sat, 3 Oct 1998 12:47:52 +0000 (12:47 +0000)]
added a bit more to the docs
Andrew Tridgell [Sat, 3 Oct 1998 12:33:34 +0000 (12:33 +0000)]
added lseek() support for directories
Andrew Tridgell [Sat, 3 Oct 1998 12:32:18 +0000 (12:32 +0000)]
fixed a bug in name_len() (thanks to kooros@kooros.netrack.net)
Andrew Tridgell [Sat, 3 Oct 1998 11:54:20 +0000 (11:54 +0000)]
added lseek() to smbwrapper
Andrew Tridgell [Sat, 3 Oct 1998 11:54:00 +0000 (11:54 +0000)]
use O_ACCMODE
Andrew Tridgell [Sat, 3 Oct 1998 11:53:37 +0000 (11:53 +0000)]
- always open for reading (otherwise getattrE won't work).
- added somemore NT error codes
Andrew Tridgell [Sat, 3 Oct 1998 11:51:52 +0000 (11:51 +0000)]
updated prototypes
Andrew Tridgell [Sat, 3 Oct 1998 11:51:30 +0000 (11:51 +0000)]
define O_ACCMODE if not defined
Andrew Tridgell [Sat, 3 Oct 1998 11:51:01 +0000 (11:51 +0000)]
added lseek
Andrew Tridgell [Sat, 3 Oct 1998 10:24:49 +0000 (10:24 +0000)]
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 [Sat, 3 Oct 1998 09:39:11 +0000 (09:39 +0000)]
added unlink() and rename() support to smbwrapper
Andrew Tridgell [Sat, 3 Oct 1998 08:34:53 +0000 (08:34 +0000)]
ignore *.p files
Andrew Tridgell [Sat, 3 Oct 1998 08:34:35 +0000 (08:34 +0000)]
lots of improvements to smbwrapper. It now works with Samba, Win95 and
WinNT servers, and correctly lists share names in /smb/SERVER/
Andrew Tridgell [Sat, 3 Oct 1998 08:33:22 +0000 (08:33 +0000)]
- ignore *.p files
Andrew Tridgell [Sat, 3 Oct 1998 08:33:07 +0000 (08:33 +0000)]
- ignore *.p files
- enable cli_RNetSharEnum
- fix password handling in sesssetup for NT1 protocol
- handle partial reads and writes in cli_{read,write}
- added cli_getattrE
- modify cli_qpathinfo() to swap byte order for win95 servers
- handle temporary errors from FINDFIRST/FINDNEXT from win95 servers,
when we get a error we sleep for a bit and retry
- return approx unix errno from cli_error(). Need to add a lot more
cases to this.
Andrew Tridgell [Sat, 3 Oct 1998 08:29:06 +0000 (08:29 +0000)]
- ignore *.p files
- make msleep() non-static
Andrew Tridgell [Sat, 3 Oct 1998 08:28:05 +0000 (08:28 +0000)]
updated prototypes
Andrew Tridgell [Sat, 3 Oct 1998 08:27:39 +0000 (08:27 +0000)]
- remove .p files in make clean
- added readlink support to smbwrapper
Andrew Tridgell [Sat, 3 Oct 1998 08:08:03 +0000 (08:08 +0000)]
added capabilities ab win95 fields to client structure. Used for
detecting win95 server for bug handling
Luke Leighton [Fri, 2 Oct 1998 21:09:23 +0000 (21:09 +0000)]
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.
Luke Leighton [Fri, 2 Oct 1998 18:45:07 +0000 (18:45 +0000)]
- static function "create_new_hashes" was identical to "nt_lm_owf_gen".
create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen
did, because jeremy sorted this out a couple of days ago. call
nt_lm_owf_gen instead.
- call SMBOWFencrypt from SMBencrypt and SMBNTencrypt.
- added #ifdef DEBUG_PASSWORD debug password calls.
Luke Leighton [Fri, 2 Oct 1998 18:14:38 +0000 (18:14 +0000)]
microsoft is slowly fixing some buffer overflow errors in dce/rpc code (SP4).
therefore, they are being more strict, first in the server-side code, and
now in the client-side code.
this fixes a bind-request that was too short by 16 bytes, and an rpc-request
that was too long by 24 bytes.
Andrew Tridgell [Fri, 2 Oct 1998 12:38:45 +0000 (12:38 +0000)]
some changes in smbtorture as a result of clientgen interface changes
for smbwrapper
note that Lukes client changes broke smbtorture. This doesn't fix it,
but at least I didn't break it more than it was.
Andrew Tridgell [Fri, 2 Oct 1998 12:37:31 +0000 (12:37 +0000)]
the guts of the smbwrapper code. I may change the layout of this at
some stage.
Andrew Tridgell [Fri, 2 Oct 1998 12:36:18 +0000 (12:36 +0000)]
several clientgen mods to support smbwrapper. In particular added
cli_list() for directory listing and expended some other functions a
bit.
Andrew Tridgell [Fri, 2 Oct 1998 12:35:28 +0000 (12:35 +0000)]
added sys_getwd()
Andrew Tridgell [Fri, 2 Oct 1998 12:34:56 +0000 (12:34 +0000)]
use sys_stat() not file_exist() for codepages. (we don't want dos
translation!)
Andrew Tridgell [Fri, 2 Oct 1998 12:34:14 +0000 (12:34 +0000)]
a couple of mode for smbwrapper
Andrew Tridgell [Fri, 2 Oct 1998 12:33:44 +0000 (12:33 +0000)]
makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"