| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
|
| |
|
| |
|
|
|
|
|
|
|
| |
and replaced with two functions:
void zero_ip(struct in_adder *ip);
BOOL is_zero_ip(struct in_addr ip);
|
|
|
|
|
| |
lookup uses password server parameter when looking for PDCs.
Jeremy.
|
|
|
|
| |
Andrew Bartlett
|
|
|
|
|
| |
Apply the patches from Tom Jansen, get rid of fprintfs and change them to
DEBUGs, etc ...
|
|
|
|
| |
it and fix smb://<IP-addr>.
|
|
|
|
| |
Jeremy.
|
| |
|
|
|
|
| |
the build farm
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
major changes include:
- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code
We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls
but that is too much for one night
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
out the error handling into a bunch of separate functions rather than all
being handled in one big function.
Fetch error codes from the last received packet:
void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num);
uint32 cli_nt_error(struct cli_state *);
Convert errors to UNIX errno values:
int cli_errno_from_dos(uint8 eclass, uint32 num);
int cli_errno_from_nt(uint32 status);
int cli_errno(struct cli_state *cli);
Detect different kinds of errors:
BOOL cli_is_dos_error(struct cli_state *cli);
BOOL cli_is_nt_error(struct cli_state *cli);
BOOL cli_is_error(struct cli_state *cli);
This also means we now support CAP_STATUS32 as we can decode and understand
NT errors instead of just DOS errors. Yay!
Ported a whole bunch of files in libsmb to use this new API instead of the
just the DOS error.
|
|
|
|
| |
can't redefine them. damn.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
is a better return code anyway (I knew that :-)
|
| |
|
|
|
|
|
| |
Also fixed an error return for smbc_rmdir so that we can distinguish
between EACCES and ENOTEMPTY
|
| |
|
| |
|
|
|
|
| |
wrong interface defn.
|
|
|
|
| |
libsmbclient.c: fix problems with return codes on smbc_unlink_print_job
|
|
|
|
| |
where I was indexing through a NULL pointer :-(
|
|
|
|
|
| |
Fix some problems with unused variables and reaching the end of a
nonvoid function
|
|
|
|
|
|
| |
enabled by default
you can disable it by setting the environment variable CLI_FORCE_ASCII
|
|
|
|
|
|
| |
This now uses a lookup on <DOMAIN><1D> and then does a name status query to
the IP address returned to find the name of the server. Seems to work well
against Samba, Win9X, WinNT and Win2K.
|
|
|
|
|
|
| |
only respond to port 138 when dealing with NetBIOS datagrams.
We use the unexpected packed database.
|
|
|
|
| |
problem in libsmbclient.c where we no longer pass the workgroup.
|
|
|
|
| |
of last two print routines ...
|
| |
|
|
|
|
| |
Caldera test suite and start to add the printing routines.
|
| |
|
|
|
|
|
| |
instead of EPERM and a problem with SMBC_OPEN where it ignored an error
from the underlying cli_open routine and cheerfully returned a bogus FD.
|
|
|
|
| |
strings can be handled correctly.
|
|
|
|
|
|
| |
both tested ...
More later.
|
|
|
|
|
|
|
| |
- an implementation of smbc_readdir
- extensions to tree.c to show files in a second window
- changes to auth_fn to provide buffers for username, password, etc
from caller rather than callee
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
gtk+ test application that tests out some of this stuff ...
|
|
|
|
|
|
|
|
| |
It can now do a directory listing for workgroups, servers, and shares, and,
with a bit more effort, it will be able to list directories and files.
I also does not request a username and password for the IPC$ share, but it
should if the first attempt to connect fails.
|
|
This code handles the basic stuff and compiles and links under Linux, but
I do not know about any other operating systems. Now onto directory
listing routines, including those that list workgroups, servers, etc.
Nothing is built automatically yet, you have to make client/testsmbc to build
the library and test program. Also, no make install targets are defined for
libsmbclient.so as yet, either.
Would be good if people test on operating systems other than Linux.
|