summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.Jeremy Allison2000-04-111-2/+2
| | | | Jeremy.
* The latest open() code changes broke the NT directory opens. Detect if aJeremy Allison2000-04-111-1/+1
| | | | | | read-only open on a directory was done and return an EISDIR from open_file(). Changed interface to fd_close to return error. Jeremy.
* include/byteorder.h: ALIGN4/ALIGN2 macros.Jeremy Allison2000-04-113-9/+9
| | | | | | | | | | | | include/includes.h: Added SMB_BIG_UINT_BITS. lib/util.c: Removed align2/align4 - use macros. libsmb/namequery.c: Use ALIGN2. locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Needed to move to hiding POSIX locks at a lower layer. nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros. smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Jeremy.
* prototypesAndrew Tridgell2000-04-111-0/+1
|
* new prototypesAndrew Tridgell2000-04-111-4/+8
|
* new prototypesAndrew Tridgell2000-04-101-11/+10
|
* got rid of the file_fd_struct structure completely.Andrew Tridgell2000-04-101-22/+4
| | | | | | | | | With the new br_lock() code we no longer need the fd multiplexing, which is great because it was really horrible :) Moved the dev, inode and delete_on_close elements into the fsp. A nice side effect is that this has greatly simplified open.c
* Modified interfaces and added checks around *all* *alloc callsJeremy Allison2000-04-061-2/+2
| | | | | so that errors are returned on memory allocation failure. Jeremy.
* changed all the status code to ERROR_xxx instead of NT_STATUS_xx which areJean-François Micouleau2000-04-051-0/+3
| | | | | | | | | | | | wrong in the spoolss case. fxed a bug in the job notify code (that's the polite answer), the truth is different: there is a bug in the NT spooler service, including SP6a and NT2K. changed the default lpcommand in the LPRNG case. J.F.
* Change to vfs API. POSIX states fsync should return an int, not a void.Jeremy Allison2000-04-042-2/+2
| | | | Jeremy.
* Removed unused parameter vuid from rpc_server api_* calls. For the very fewTim Potter2000-04-041-1/+1
| | | | | | | functions that need to access the vuid, it can be obtained from the current_user global. Did some whitespace cleanup.
* Added check for LL suffix to long long ints needed by AIX 4.3.x compilerJeremy Allison2000-03-291-0/+1
| | | | | to allow successful build. Jeremy.
* rewrote getprinterdriver level 3, now correctly handle the dependentJean-François Micouleau2000-03-292-10/+12
| | | | | | | | files. A number of memleak fixed some error return values fixed. J.F.
* changed the definition of dos_PutUniCodeAndrew Tridgell2000-03-271-1/+1
| | | | | | | | | the previous definition could result is us overflowing a buffer. The null termination was always added yet the size returned did not include the null termination. the new function takes a BOOL null_terminate, and always returns the total number of bytes consumed by the string.
* the final part of the nmbd merge between head and tng - this gets theAndrew Tridgell2000-03-272-343/+344
| | | | GETDC stuff sorted out
* moved nmblib-specific code from util.c to nmblib.c.Luke Leighton2000-03-271-344/+343
|
* Correctly convert from little-endian UNICODE to dos_codepage when doingJeremy Allison2000-03-221-16/+18
| | | | | secure file create. Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-223-0/+14
| | | | | | | | | | | | | | include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy.
* Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison2000-03-161-1/+1
| | | | Jeremy
* include/smb.h:Jeremy Allison2000-03-131-0/+3
| | | | | | | | smbd/negprot.c: smbd/reply.c: Fixes to recognise Win2k. param/loadparm.c: Put debug timestamp parameter back to correct default. smbd/nttrans.c: Fix to detect Win2k unicode bug with transact create. Jeremy.
* oops ! forgot smb.h in last commitJean-François Micouleau2000-03-133-0/+14
| | | | | | added info level 1 parsing code for addprinter(ex) J.F.
* parse correctly getprinterdriver2Jean-François Micouleau2000-03-132-6/+8
| | | | | | | | | found a stupid bug in enumprinters fixed some memleaks found a coredump in enumprinterdata getprinterdriverdir responds correctly now. J.F.
* Cleaned up unused variables, returns from non-void functions etc.Shirish Kalele2000-03-101-5/+1
|
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-103-33/+22
| | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy.
* you know, when you do a cvs commit, you _really_ expect it to actually work.Luke Leighton2000-03-102-24/+34
| | | | this explains why j-f wasn't happy.
* getprinter level 0: was to short, found most of the fields, undocumented,Jean-François Micouleau2000-03-105-52/+82
| | | | | | | | | undecoded, nothing in MSDN, but now it works :-) cleanup of error codes. fixed some dfs declarations function. J.F.
* indent went wrong. grr.Luke Leighton2000-03-101-226/+357
|
* Big update moving the multi-pdu support from 2.0.x into HEAD for JFJeremy Allison2000-03-096-49/+115
| | | | | | | | | | | | and the printer functions. Also tidied up some header includes and got the order right so you can now do a : make proto make clean make Jeremy.
* dded Microsoft Dfs services.Shirish Kalele2000-03-086-1/+84
| | | | | | | | | | | | | | | | | * added a new msdfs/ directory under source/ * added msdfs sources under this directory. * modified configure setup to add a --with-msdfs configure time option Modified Files: Makefile.in acconfig.h configure configure.in include/config.h.in include/includes.h include/proto.h include/smb.h include/smb_macros.h param/loadparm.c smbd/negprot.c smbd/nttrans.c smbd/process.c smbd/reply.c smbd/server.c smbd/trans2.c Added Files: include/msdfs.h msdfs/README msdfs/msdfs.c msdfs/msdfs_tdb.c msdfs/parse_dfs_map.c ----------------------------------------------------------------------
* Enumprinters level 1: reply *exactly* like an NT serverJean-François Micouleau2000-03-071-0/+1
| | | | | | BTW, found a little memleak in it. J.F.
* fixed enumprinterdata.Jean-François Micouleau2000-03-071-1/+8
| | | | J.F.
* changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau2000-03-062-15/+18
| | | | | | | | | | | | fixed typo in SPOOLSS_SYNT some cleanup of unused functions wrote make_spoolss_enumprinter and make_spoolss_openprinterex for rpcclient as I'm trying to keep in sync the parsing code between HEAD and TNG. Will commit changes to TNG after lunch. J.F.
* Fixes from Luke, back-ported from TNG to Win2k. Correctly return FAULT_PDU onJeremy Allison2000-02-292-0/+11
| | | | | unknown rpc calls. Win2k now correctly shows the owners of files. Jeremy.
* Fixes for strange Win2K attempts to auto-inherit ACLs.Jeremy Allison2000-02-291-0/+11
| | | | Jeremy.
* added enumprintprocessordatatypesJean-François Micouleau2000-02-262-352/+360
| | | | | | now NT is happy and the "always send data in RAW mode" is checked J.F.
* rewrote enumprinterdata. still a bug in it but reproducing it hard andJean-François Micouleau2000-02-262-360/+354
| | | | | | | | | | borring. I need a client test program urgently!!! rewrote setprinter, doesn't coredump anymore, and no memleak. J.F.
* client/client.c:Jeremy Allison2000-02-252-3/+16
| | | | | | | libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy.
* converted a couple of bzero() to memset()Jean-François Micouleau2000-02-242-57/+85
| | | | | | | | | | | rewrote the printer notify code, so now it's compatible with SP5 and fully dynamic. No more limits on printers and job lists. removed the make_xxx() functions as they are not used and broken fixed a bug in the open handle function. J.F.
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-232-15/+53
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* more rewrite ...Jean-François Micouleau2000-02-212-99/+72
| | | | | | comitting before starting on new functions. J.F.
* Fix for reporting file system attributes correctly.Jeremy Allison2000-02-181-4/+11
| | | | Jeremy.
* Make proto.Jeremy Allison2000-02-161-0/+1
|
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-153-343/+350
| | | | | | | | | on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy.
* fix the reply of rpc_alter_contextJean-François Micouleau2000-02-152-444/+437
| | | | | | | | | OpenPrinterEx is now decoding correctly the query most of the EnumXXX use the new_buffer struct. check the (un)marshalling return code. conclusion: still a long way to go. all the client code has to be rewritten, and I still wonder how to implement correctly the notify stuff.
* make proto ...Jean-François Micouleau2000-02-071-340/+675
| | | | | | and the Makefile.in file J.F.
* spoolss include definitionsJean-François Micouleau2000-02-075-15/+35
| | | | J.F.
* First commit of the spoolss code to the HEAD branch.Jean-François Micouleau2000-02-072-0/+1678
| | | | | | still needs a lot of cleaning/debuging. J.F.
* Added check for SGI IRIX brokenness with semaphores when using gcc.Jeremy Allison2000-02-072-4/+20
| | | | | Code from Don Badrak <dbadrak@census.gov> Jeremy.
* Fixed compile warning in locking.c:traverse_fn()Tim Potter2000-02-071-340/+340
|
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-042-345/+357
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.