kai/samba.git
24 years agonew prototypes
Andrew Tridgell [Mon, 10 Apr 2000 13:08:25 +0000 (13:08 +0000)]
new prototypes

24 years agothe bulk of the changes to get rid of fd_ptr and move print open
Andrew Tridgell [Mon, 10 Apr 2000 13:05:23 +0000 (13:05 +0000)]
the bulk of the changes to get rid of fd_ptr and move print open
handling to printing/printing.c

most of this was just replacing things like fsp->fd_ptr->fd with fsp->fd

the changes in open.c are quite dramatic. Most of it is removing all
the functions that handled the fd multiplexing

24 years agorather than doing print file open processing in open.c we now handle
Andrew Tridgell [Mon, 10 Apr 2000 13:00:12 +0000 (13:00 +0000)]
rather than doing print file open processing in open.c we now handle
it in print_open_file()

that removes a lot of special cases in open.c and makes the print
handling code much easier to understand.

there is still lots to do in printing.c, but this at least gets
printing separated from the mainline code

24 years agothe first of a bunch of changes to code with getting rid of the fd_ptr
Andrew Tridgell [Mon, 10 Apr 2000 12:58:14 +0000 (12:58 +0000)]
the first of a bunch of changes to code with getting rid of the fd_ptr
element in the fsp

pretty mechanical stuff, but it affects lots of files.

24 years agogot rid of the file_fd_struct structure completely.
Andrew Tridgell [Mon, 10 Apr 2000 12:57:05 +0000 (12:57 +0000)]
got rid of the file_fd_struct structure completely.

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

24 years agoremoved the read prediction code from the head branch. I think the
Andrew Tridgell [Mon, 10 Apr 2000 12:54:18 +0000 (12:54 +0000)]
removed the read prediction code from the head branch. I think the
idea is fundamentally flawed anyway and it has been disabled for a
long time.

24 years agosplit out the lpq parsing code into a separate file
Andrew Tridgell [Mon, 10 Apr 2000 03:09:42 +0000 (03:09 +0000)]
split out the lpq parsing code into a separate file
printing/lpq_parse.c

getting ready for the new printing backend

24 years agodon't echo warning messages twice
Andrew Tridgell [Mon, 10 Apr 2000 02:57:54 +0000 (02:57 +0000)]
don't echo warning messages twice

24 years agoutmp compile fix from peter@cadcamlab.org
Andrew Tridgell [Mon, 10 Apr 2000 02:44:06 +0000 (02:44 +0000)]
utmp compile fix from peter@cadcamlab.org

24 years agoModified interfaces and added checks around *all* *alloc calls
Jeremy Allison [Thu, 6 Apr 2000 22:48:53 +0000 (22:48 +0000)]
Modified interfaces and added checks around *all* *alloc calls
so that errors are returned on memory allocation failure.
Jeremy.

24 years agofilled the architecture table (useless for the moment).
Jean-François Micouleau [Thu, 6 Apr 2000 16:23:04 +0000 (16:23 +0000)]
filled the architecture table (useless for the moment).
fixed GetJob.

J.F.

24 years agofsync() returns an int rather than void.
Tim Potter [Wed, 5 Apr 2000 22:42:26 +0000 (22:42 +0000)]
fsync() returns an int rather than void.

24 years agoAdded *.so
Tim Potter [Wed, 5 Apr 2000 22:42:06 +0000 (22:42 +0000)]
Added *.so

24 years agoImproved clean target.
Tim Potter [Wed, 5 Apr 2000 22:41:42 +0000 (22:41 +0000)]
Improved clean target.

24 years agoJF - you might want to look at this patch.
Jeremy Allison [Wed, 5 Apr 2000 19:48:06 +0000 (19:48 +0000)]
JF - you might want to look at this patch.

Went through and fixed up all failure possibilities. If something (malloc,
file open etc.) fails, then this code goes through and cleans up all allocated
resources on exit. This is the equivalent of a C++ destuctor for the allocated
structures. We need code to be written like this to pass purify tests.

Jeremy.

24 years agooff by one error ...
Jean-François Micouleau [Wed, 5 Apr 2000 17:53:45 +0000 (17:53 +0000)]
off by one error ...

J.F.

24 years agochanged all the status code to ERROR_xxx instead of NT_STATUS_xx which are
Jean-François Micouleau [Wed, 5 Apr 2000 10:05:32 +0000 (10:05 +0000)]
changed all the status code to ERROR_xxx instead of NT_STATUS_xx which are
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.

24 years agoAdded strerror at debug level 0 on file create/open fail. Helps catch
Jeremy Allison [Wed, 5 Apr 2000 01:26:52 +0000 (01:26 +0000)]
Added strerror at debug level 0 on file create/open fail. Helps catch
problems.
Jeremy.

24 years agoChange to vfs API. POSIX states fsync should return an int, not a void.
Jeremy Allison [Tue, 4 Apr 2000 18:44:04 +0000 (18:44 +0000)]
Change to vfs API. POSIX states fsync should return an int, not a void.
Jeremy.

24 years agoRemoved strange optimisation (paranoia fix maybe ?) that stopped smbd
Jeremy Allison [Tue, 4 Apr 2000 01:13:54 +0000 (01:13 +0000)]
Removed strange optimisation (paranoia fix maybe ?) that stopped smbd
from returning '.' and '..' in a top level listing of a trans2 directory
scan. NT does return these entries.
Jeremy.

24 years agoSnuck in some whitespace cleanup while I was visiting these files. (-:
Tim Potter [Tue, 4 Apr 2000 00:36:19 +0000 (00:36 +0000)]
Snuck in some whitespace cleanup while I was visiting these files.  (-:

24 years agoRemoved unused parameter vuid from rpc_server api_* calls. For the very few
Tim Potter [Tue, 4 Apr 2000 00:35:34 +0000 (00:35 +0000)]
Removed unused parameter vuid from rpc_server api_* calls.  For the very few
functions that need to access the vuid, it can be obtained from the
current_user global.

Did some whitespace cleanup.

24 years agoFix for compiler warning about invalid structure type.
Jeremy Allison [Mon, 3 Apr 2000 23:06:03 +0000 (23:06 +0000)]
Fix for compiler warning about invalid structure type.
jeremy.

24 years agoHmmm - unicode codepages need adding to HEAD. Thought that'd been done ?
Jeremy Allison [Mon, 3 Apr 2000 22:50:33 +0000 (22:50 +0000)]
Hmmm - unicode codepages need adding to HEAD. Thought that'd been done ?
Jeremy.

24 years agoFix for spoolss code from Alan Hourihane <Alan.Hourihane@pinacl.co.uk>.
Jeremy Allison [Mon, 3 Apr 2000 18:05:33 +0000 (18:05 +0000)]
Fix for spoolss code from Alan Hourihane <Alan.Hourihane@pinacl.co.uk>.
Jeremy.

24 years agoAdditional fix for nmbd and 127.0.0.1 interface.
Jeremy Allison [Mon, 3 Apr 2000 17:12:25 +0000 (17:12 +0000)]
Additional fix for nmbd and 127.0.0.1 interface.
Jeremy.

24 years agofixes for broken IRIX header file merged from 2.0 branch
Herb Lewis [Fri, 31 Mar 2000 22:30:13 +0000 (22:30 +0000)]
fixes for broken IRIX header file merged from 2.0 branch

24 years agoIRIX include fixes.
Jeremy Allison [Fri, 31 Mar 2000 20:44:55 +0000 (20:44 +0000)]
IRIX include fixes.
Jeremy.

24 years agosamba-bugs -> samba.
Jeremy Allison [Thu, 30 Mar 2000 22:19:35 +0000 (22:19 +0000)]
samba-bugs -> samba.
Jeremy.

24 years agoFix for coredump in testparm.
Jeremy Allison [Thu, 30 Mar 2000 20:32:33 +0000 (20:32 +0000)]
Fix for coredump in testparm.
Jeremy.

24 years agoFixed spelling of Andrew's name. (-:
Tim Potter [Thu, 30 Mar 2000 06:42:34 +0000 (06:42 +0000)]
Fixed spelling of Andrew's name.  (-:

24 years agoI finally got sick of configure being run automaticaly when I run make
Andrew Tridgell [Thu, 30 Mar 2000 00:34:15 +0000 (00:34 +0000)]
I finally got sick of configure being run automaticaly when I run make
clean or in other situations. That then screws up options I pass to
configure and is generally annoying.

Instead the Makefile now emits a warning if configure needs
rerunning, but doesn't actually run it.

don't re-enable the auto running of configure on pain of death :)

24 years agoAdded check for LL suffix to long long ints needed by AIX 4.3.x compiler
Jeremy Allison [Wed, 29 Mar 2000 23:03:48 +0000 (23:03 +0000)]
Added check for LL suffix to long long ints needed by AIX 4.3.x compiler
to allow successful build.
Jeremy.

24 years agoFixed bug found by JF where if the amount of data to return in the prs_struct
Jeremy Allison [Wed, 29 Mar 2000 22:19:58 +0000 (22:19 +0000)]
Fixed bug found by JF where if the amount of data to return in the prs_struct
was small enough to pass the SMBtrans max data test we weren't setting the
"more data needed" error. I was fogetting the RPC_HEADER_LEN.... I now
check the correct length (current pdu staging area length). More printer
spool enum stuff works now. This bug does not affect TNG.
Jeremy.

24 years agoCause nmbd to ignore loopback interface when constructing its interface ...
Jeremy Allison [Wed, 29 Mar 2000 21:30:52 +0000 (21:30 +0000)]
Cause nmbd to ignore loopback interface when constructing its interface                                                         list. This is done by default when interfaces are probed, but if someone
explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would
start to try and register names on it. This was not good :-(.
Jeremy.

24 years agosplit addprinterex in preparation for level 1 support and to stop it
Jean-François Micouleau [Wed, 29 Mar 2000 14:49:05 +0000 (14:49 +0000)]
split addprinterex in preparation for level 1 support and to stop it
coredump.

J.F.

24 years agorewrote getprinterdriver level 3, now correctly handle the dependent
Jean-François Micouleau [Wed, 29 Mar 2000 12:36:44 +0000 (12:36 +0000)]
rewrote getprinterdriver level 3, now correctly handle the dependent
files.
A number of memleak fixed
some error return values fixed.

J.F.

24 years agoMore Japanese filename fixes wrt VFS code from
Tim Potter [Wed, 29 Mar 2000 07:44:23 +0000 (07:44 +0000)]
More Japanese filename fixes wrt VFS code from
Tomoki AONO <aono@cc.osaka-kyoiku.ac.jp>

24 years agodamn, the test was the wrong way around for short_resuest
Andrew Tridgell [Tue, 28 Mar 2000 03:03:34 +0000 (03:03 +0000)]
damn, the test was the wrong way around for short_resuest

24 years agoWin2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy Allison [Tue, 28 Mar 2000 02:38:59 +0000 (02:38 +0000)]
Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
Jeremy.

24 years agoMoved common code to set parameter offset field correctly oout of 'if'
Jeremy Allison [Tue, 28 Mar 2000 02:20:57 +0000 (02:20 +0000)]
Moved common code to set parameter offset field correctly oout of 'if'
statement into main function code path.
Jeremy.

24 years agoFixed crash bug in new handle_netbios_name code.
Jeremy Allison [Mon, 27 Mar 2000 20:25:34 +0000 (20:25 +0000)]
Fixed crash bug in new handle_netbios_name code.
Jeremy.

24 years agochanged the definition of dos_PutUniCode
Andrew Tridgell [Mon, 27 Mar 2000 12:38:45 +0000 (12:38 +0000)]
changed the definition of dos_PutUniCode

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.

24 years agothe final part of the nmbd merge between head and tng - this gets the
Andrew Tridgell [Mon, 27 Mar 2000 12:19:58 +0000 (12:19 +0000)]
the final part of the nmbd merge between head and tng - this gets the
GETDC stuff sorted out

24 years agofixed the hanlding of recursion desired when sending packets from
Andrew Tridgell [Mon, 27 Mar 2000 08:34:26 +0000 (08:34 +0000)]
fixed the hanlding of recursion desired when sending packets from
nmbd. It does NOT follow the rule that packets to the wins server have
rec_des set (I know that we have postulated this in the past). Please
don't screw with this unless you do careful testing from WinXX
clients.

Luke and I spent a couple of hours today getting this right (it was
wrong in both TNG and HEAD)

24 years agomoved nmblib-specific code from util.c to nmblib.c.
Luke Leighton [Mon, 27 Mar 2000 01:33:43 +0000 (01:33 +0000)]
moved nmblib-specific code from util.c to nmblib.c.

24 years agorename static reload_services function to reload_nmbd_services because
Luke Leighton [Mon, 27 Mar 2000 00:52:33 +0000 (00:52 +0000)]
rename static reload_services function to reload_nmbd_services because
it clashes with other reload_services definitions.

24 years agowhen doing a "secure nbns" wack response and check with owner for a
Andrew Tridgell [Sun, 26 Mar 2000 23:16:07 +0000 (23:16 +0000)]
when doing a "secure nbns" wack response and check with owner for a
multihomed registration we were sending the packet to the wrong host!
We sent it to the person trying to register rather than to the person
who currently holds the name. That means we were not secure and we
could allow two people to register the same name.

Jeremy, you may wish to merge this change into 2.0.X

24 years agomerge from tng ...
Andrew Tridgell [Sun, 26 Mar 2000 23:13:12 +0000 (23:13 +0000)]
merge from tng ...

reload services can be static

24 years agoload smb.conf and interfaces in masktest (to allow for netbios name
Andrew Tridgell [Sun, 26 Mar 2000 09:20:47 +0000 (09:20 +0000)]
load smb.conf and interfaces in masktest (to allow for netbios name
resolution)

24 years agorpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xx
Jeremy Allison [Sat, 25 Mar 2000 01:37:08 +0000 (01:37 +0000)]
rpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xx
calls.
smbd/connection.c: Fix from David Lee <T.D.Lee@durham.ac.uk>.
Jeremy.

24 years agoCorrectly convert from little-endian UNICODE to dos_codepage when doing
Jeremy Allison [Wed, 22 Mar 2000 20:39:31 +0000 (20:39 +0000)]
Correctly convert from little-endian UNICODE to dos_codepage when doing
secure file create.
Jeremy.

24 years agoacconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
Jeremy Allison [Wed, 22 Mar 2000 19:03:12 +0000 (19:03 +0000)]
acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
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.

24 years agodisabled the getgrent() code recently added that returns all unix groups
Luke Leighton [Wed, 22 Mar 2000 11:03:32 +0000 (11:03 +0000)]
disabled the getgrent() code recently added that returns all unix groups
as NT aliases.  no allowance is made for possible clashes with some
unix groups that may be mapped to NT groups, not NT aliases.

it is not the place of this code to make decisions about which unix
groups should be mapped to NT aliases or NT groups, or in fact whether
unix groups exist at all (e.g "appliance" mode).

please could the person who wrote this code contact me and i will outline
the architecture and design issues that you need to be aware of when
working in this area: i need your skills and ability -- applied in the
right places.

thank you.

24 years agodisabled code from HP that replaced get_sampwd_entries() with
Luke Leighton [Wed, 22 Mar 2000 10:55:01 +0000 (10:55 +0000)]
disabled code from HP that replaced get_sampwd_entries() with
get_passwd_entries().  get_sampwd_entries() calls the generic
SAM pwdb API, whereas get_passwd_entries() calls the Unix database
explicitly.

this will result in LDAP, MYSQL, NISPLUS and any other future modules
(e.g "appliance" mode SAM database) failing to operate correctly.

i know what problem was attempted to be fixed, here, but this is
not the right place to attempt to fix it.

24 years agoadded the following message to all dce/rpc client/server code, except
Luke Leighton [Wed, 22 Mar 2000 10:26:09 +0000 (10:26 +0000)]
added the following message to all dce/rpc client/server code, except
the spoolss code (it's cut from TNG) and the smb-dce/rpc interface
code that jeremy has been working up to TNG-functionality.

i also want this message to go into SAMBA_2_0 and SAMBA_2_0_RELEASE,
because it is intolerable that potentially good modifications be made
to code that is going to be thrown away, and people waste their time
fixing bugs and adding enhancements that have already been carried
out already, up to two years ago in the TNG branch.

/*
 * THIS CODE IS OUT-OF-DATE BY TWO YEARS, IS LEGACY DESIGN AND VERY, VERY,
 * INCOMPLETE.  PLEASE DO NOT MAKE ANY FURTHER ENHANCEMENTS TO THIS CODE
 * UNLESS THEY ARE ALSO CARRIED OUT IN THE SAMBA_TNG BRANCH.
 *
 * PLEASE DO NOT TREAT THIS CODE AS AUTHORITATIVE IN *ANY* WAY.
 *
 * REPEAT, PLEASE DO NOT MAKE ANY MODIFICATIONS TO THIS CODE WITHOUT
 * FIRST CHECKING THE EQUIVALENT MODULE IN SAMBA_TNG, UPDATING THAT
 * FIRST, *THEN* CONSIDER MAKING THE SAME MODIFICATION IN THIS BRANCH
 *
 * YOU WILL, ALMOST GUARANTEED, FIND THAT THE BUG-FIX OR ENHANCEMENT THAT
 * YOU THINK IS NECESSARY, HAS ALREADY BEEN IMPLEMENTED IN SAMBA_TNG.
 * IF IT HAS NOT, YOUR BUG-FIX OR ENHANCEMENT *MUST* GO INTO SAMBA_TNG
 * AS THE SAMBA_TNG CODE WILL REPLACE THIS MODULE WITHOUT REFERENCE TO
 * ANYTHING IN IT, WITH THE POSSIBLE RISK THAT THE BUG-FIX OR ENHANCEMENT
 * MAY BE LOST.
 *
 * PLEASE OBSERVE AND RESPECT THIS SIMPLE REQUEST.
 *
 * THANK YOU.
 *
 * lkcl@samba.org
 */

24 years agoindent update to make t easier to see setuid mods in TNG. some
Luke Leighton [Tue, 21 Mar 2000 21:08:07 +0000 (21:08 +0000)]
indent update to make t easier to see setuid mods in TNG.  some
code from these modules i had to leave out (nothing to do withj setuid)

24 years agoAdded preliminary user list code from HP. Needs to be made dynamic
Jeremy Allison [Tue, 21 Mar 2000 18:33:08 +0000 (18:33 +0000)]
Added preliminary user list code from HP. Needs to be made dynamic
and backended with a tdb database so the list can be shared between
multiple smbds. ToDO.

Jermey.

24 years agoFix from christoph.pfisterer@rwg.de for large directory listing to OS/2
Jeremy Allison [Mon, 20 Mar 2000 21:42:15 +0000 (21:42 +0000)]
Fix from christoph.pfisterer@rwg.de for large directory listing to OS/2
server.
Jeremy.

24 years agoFixes to add "paranoid" option to popen. Checks some basic things.
Jeremy Allison [Thu, 16 Mar 2000 20:55:37 +0000 (20:55 +0000)]
Fixes to add "paranoid" option to popen. Checks some basic things.
Jeremy

24 years agoremoved extra arguements from make_nmb_name calls
Herb Lewis [Thu, 16 Mar 2000 17:58:08 +0000 (17:58 +0000)]
removed extra arguements from make_nmb_name calls

24 years agofix a bug in enumprinterdrivers
Jean-François Micouleau [Thu, 16 Mar 2000 16:23:38 +0000 (16:23 +0000)]
fix a bug in enumprinterdrivers

J.F.

24 years agouse parameters to minimize changes in samba for irix release version
Herb Lewis [Thu, 16 Mar 2000 06:44:27 +0000 (06:44 +0000)]
use parameters to minimize changes in samba for irix release version

24 years agouse proper parameter names instead of alias names
Herb Lewis [Thu, 16 Mar 2000 06:40:07 +0000 (06:40 +0000)]
use proper parameter names instead of alias names
clear lppause and lpresume commands since they don't exist on IRIX
change spool directory

24 years agoFix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.
Jeremy Allison [Wed, 15 Mar 2000 18:00:30 +0000 (18:00 +0000)]
Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.
Jeremy.

24 years agoFixed parsing issue with HP printer defs reported by HP.
Jeremy Allison [Tue, 14 Mar 2000 22:04:35 +0000 (22:04 +0000)]
Fixed parsing issue with HP printer defs reported by HP.
Jeremy.

24 years agoAdding libtool support to HEAD branch. We're going to need this for
Tim Potter [Mon, 13 Mar 2000 23:20:01 +0000 (23:20 +0000)]
Adding libtool support to HEAD branch.  We're going to need this for
various things yet to be merged from TNG.  The smbwrapper stuff should
probably be ported across too.

24 years agoinclude/smb.h:
Jeremy Allison [Mon, 13 Mar 2000 20:05:18 +0000 (20:05 +0000)]
include/smb.h:
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.

24 years agooops ! forgot smb.h in last commit
Jean-François Micouleau [Mon, 13 Mar 2000 19:34:04 +0000 (19:34 +0000)]
oops ! forgot smb.h in last commit
added info level 1 parsing code for addprinter(ex)

J.F.

24 years agoCleaning up call_trans2getdfsreferral.
Shirish Kalele [Mon, 13 Mar 2000 18:18:36 +0000 (18:18 +0000)]
Cleaning up call_trans2getdfsreferral.
Instead of a #ifdef MS_DFS in call_trans2getdfsreferral()... , now using a generic call leading to some #define problems.. hopefully I've corrected the last of them.

24 years agoCleaned up call_trans2getdfsreferral for when MS_DFS is not defined.
Shirish Kalele [Mon, 13 Mar 2000 17:38:13 +0000 (17:38 +0000)]
Cleaned up call_trans2getdfsreferral for when MS_DFS is not defined.

24 years agosmall fix for addprinterex at level 2
Jean-François Micouleau [Mon, 13 Mar 2000 15:53:02 +0000 (15:53 +0000)]
small fix for addprinterex at level 2

I have some network dumps at level 1, but quoting MSDN: "Level [in]
Specifies the version of the structure to which pPrinter points. This
value must be 2."

I like NT so much :-)

J.F.

24 years agoInterim fix for LPRng. If a lpq parsed line start with a space, we skip
Jean-François Micouleau [Mon, 13 Mar 2000 11:21:03 +0000 (11:21 +0000)]
Interim fix for LPRng. If a lpq parsed line start with a space, we skip
it, to prevent false status return value.

Jeremy, it's a gross hack but you should consider it for 2.0.7 also.

J.F.

24 years agoparse correctly getprinterdriver2
Jean-François Micouleau [Mon, 13 Mar 2000 11:09:20 +0000 (11:09 +0000)]
parse correctly getprinterdriver2
found a stupid bug in enumprinters
fixed some memleaks
found a coredump in enumprinterdata
getprinterdriverdir responds correctly now.

J.F.

24 years agomoved #endif to end of function to compile when dfs is disabled.
Jean-François Micouleau [Mon, 13 Mar 2000 11:05:59 +0000 (11:05 +0000)]
moved #endif to end of function to compile when dfs is disabled.

J.F.

24 years agoAdded standard shell command thing using '!' as first character.
Tim Potter [Mon, 13 Mar 2000 01:35:09 +0000 (01:35 +0000)]
Added standard shell command thing using '!' as first character.

24 years agoFix stupid logic bug in detecting start-of-pdu in writeX on pipe.
Jeremy Allison [Sat, 11 Mar 2000 01:28:57 +0000 (01:28 +0000)]
Fix stupid logic bug in detecting start-of-pdu in writeX on pipe.
Found by JF.
Jeremy.

24 years agoYou *must* use O_EXCL when using mktemp (security issue).
Jeremy Allison [Sat, 11 Mar 2000 01:02:45 +0000 (01:02 +0000)]
You *must* use O_EXCL when using mktemp (security issue).
Glad this code never shipped :-).
This is not a problem in 2.0.x.
Jeremy.

24 years agoCleaned up unused variables, returns from non-void functions etc.
Shirish Kalele [Fri, 10 Mar 2000 23:13:11 +0000 (23:13 +0000)]
Cleaned up unused variables, returns from non-void functions etc.

24 years agoCleaning warnings from configure.developer
Shirish Kalele [Fri, 10 Mar 2000 23:05:53 +0000 (23:05 +0000)]
Cleaning warnings from configure.developer

24 years agoCleaning up the warnings from configure.developer.
Shirish Kalele [Fri, 10 Mar 2000 22:53:36 +0000 (22:53 +0000)]
Cleaning up the warnings from configure.developer.
Found that Jeremy had already made some of the changes.

24 years agoFix for names with spaces and some I18N filename issues from
Jeremy Allison [Fri, 10 Mar 2000 22:25:02 +0000 (22:25 +0000)]
Fix for names with spaces and some I18N filename issues from
V. Fyodorov <V.Fyodorov@VAZ.RU>.
Jeremy.

24 years agoFixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith...
Jeremy Allison [Fri, 10 Mar 2000 19:50:03 +0000 (19:50 +0000)]
Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
Partially implemented rpc daemon redirect (needs more work).
Jeremy.

24 years agoyou know, when you do a cvs commit, you _really_ expect it to actually work.
Luke Leighton [Fri, 10 Mar 2000 18:10:10 +0000 (18:10 +0000)]
you know, when you do a cvs commit, you _really_ expect it to actually work.
this explains why j-f wasn't happy.

24 years agogetprinter level 0: was to short, found most of the fields, undocumented,
Jean-François Micouleau [Fri, 10 Mar 2000 17:12:24 +0000 (17:12 +0000)]
getprinter level 0: was to short, found most of the fields, undocumented,
undecoded, nothing in MSDN, but now it works :-)

cleanup of error codes.
fixed some dfs declarations function.

J.F.

24 years agoremoved unused variable
Jean-François Micouleau [Fri, 10 Mar 2000 17:06:12 +0000 (17:06 +0000)]
removed unused variable

J.F.

24 years agorestore the spoolss pipe as Jeremy replaced srv_pipe with the one from
Jean-François Micouleau [Fri, 10 Mar 2000 17:03:04 +0000 (17:03 +0000)]
restore the spoolss pipe as Jeremy replaced srv_pipe with the one from
SAMBA_2_0 :-)

J.F.

24 years agoindent went wrong. grr.
Luke Leighton [Fri, 10 Mar 2000 00:24:40 +0000 (00:24 +0000)]
indent went wrong.  grr.

24 years agocomputer too slow to compile with debug info (100mins), but i need all the
Luke Leighton [Thu, 9 Mar 2000 22:22:38 +0000 (22:22 +0000)]
computer too slow to compile with debug info (100mins), but i need all the
warnings.

24 years agoNot used. Functionality folded back into rpc_server/srv_pipe.c (where it
Jeremy Allison [Thu, 9 Mar 2000 21:46:04 +0000 (21:46 +0000)]
Not used. Functionality folded back into rpc_server/srv_pipe.c (where it
originally came from).
Jeremy.

24 years agoBig update moving the multi-pdu support from 2.0.x into HEAD for JF
Jeremy Allison [Thu, 9 Mar 2000 21:45:16 +0000 (21:45 +0000)]
Big update moving the multi-pdu support from 2.0.x into HEAD for JF
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.

24 years agoFixups for Win2K security descriptors from the 2.0.x branch.
Jeremy Allison [Thu, 9 Mar 2000 20:00:23 +0000 (20:00 +0000)]
Fixups for Win2K security descriptors from the 2.0.x branch.
Jeremy.

24 years agoCorrected DEBUG messages.
Shirish Kalele [Thu, 9 Mar 2000 18:58:10 +0000 (18:58 +0000)]
Corrected DEBUG messages.

24 years agodded Microsoft Dfs services.
Shirish Kalele [Wed, 8 Mar 2000 22:14:30 +0000 (22:14 +0000)]
dded Microsoft Dfs services.
* 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
 ----------------------------------------------------------------------

24 years agoadded a tcon test: make two tconXs with the same user/pass, open a file
Luke Leighton [Tue, 7 Mar 2000 21:55:42 +0000 (21:55 +0000)]
added a tcon test: make two tconXs with the same user/pass, open a file
with one of them and try to write to the file with the other.

24 years agoEnumprinters level 1: reply *exactly* like an NT server
Jean-François Micouleau [Tue, 7 Mar 2000 18:10:20 +0000 (18:10 +0000)]
Enumprinters level 1: reply *exactly* like an NT server
BTW, found a little memleak in it.

J.F.

24 years agofixed enumprinterdata.
Jean-François Micouleau [Tue, 7 Mar 2000 09:06:03 +0000 (09:06 +0000)]
fixed enumprinterdata.

J.F.

24 years agochanged prs_unistr to parse empty and non-empty strings the same way.
Jean-François Micouleau [Mon, 6 Mar 2000 11:13:40 +0000 (11:13 +0000)]
changed prs_unistr to parse empty and non-empty strings the same way.
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.

24 years agoTidied up fchown code, error reporting.
Jeremy Allison [Thu, 2 Mar 2000 03:04:26 +0000 (03:04 +0000)]
Tidied up fchown code, error reporting.
Jeremy.

24 years agoCorrectly full buffer smbpasswd i/o streams.
Jeremy Allison [Thu, 2 Mar 2000 02:58:48 +0000 (02:58 +0000)]
Correctly full buffer smbpasswd i/o streams.
Jeremy.