summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Noticed that I was using the strlen() of a string that I had strdup()'dChristopher R. Hertel1998-07-251-1/+1
| | | | before testing that the strdup() worked. Fixed.
* Converted the browser database to a ubi_dLinkList. This should reduce codeChristopher R. Hertel1998-07-244-141/+175
| | | | | size, etc. Also did a bit of work to add comments. Chris -)-----
* Changed the definition of the linked list header used in the directoryChristopher R. Hertel1998-07-241-1/+1
| | | | cache so that it uses the new ubi_dlNewList() macro in ubi_dLinkList.h.
* To each list type, I added a macro that makes it easier to define andChristopher R. Hertel1998-07-244-19/+54
| | | | initialize a list header.
* Updates smbstatus to have a -S and -L flag.Richard Sharpe1998-07-242-71/+105
| | | | | | Also updated the documentation :-) The code is ugly, we need to rewrite smbstatus someday.
* locking.c: Added lock type to is_locked() and do_lock()Jeremy Allison1998-07-236-76/+140
| | | | | | | | | | | | as the code in reply_lockingX wasn't taking account of the difference between read and write locks ! How did this ever work :-) ! reply.c: server.c: Add lock type to is_locked() and do_lock(). util.c: Also added code from klausr@ITAP.Physik.Uni-Stuttgart.De to fix problem with log files growing too large if an smbd writes less than 100 debug messages. Jeremy.
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-226-14/+16
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* includes.h: Added feature type USE_GRANTPT for pty code.Jeremy Allison1998-07-222-6/+14
| | | | | chgpasswd.c: Updated to use USE_GRANTPT feature definition. Jeremy.
* Forgot to increase size of files_struct by MAX_OPEN_DIRECTORIES inJeremy Allison1998-07-171-1/+1
| | | | | previous checkin. Jeremy.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-177-76/+222
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* nttrans.c: Added FILE_EXECUTE to required permissions checked.Jeremy Allison1998-07-172-11/+13
| | | | | | | | | trans2.c: Fixed up the SMB_QUERY_FILE_ALT_NAME_INFO code, now I've got an NT client to generate it. It uses unicode without bothering to check the unicode bit of course, but now we can execute 16 bit exe's on a WinNT client from a long filename directory (hurrah). Jeremy.
* local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1998-07-172-5/+14
| | | | | nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy.
* Makefile: Added nttrans.oJeremy Allison1998-07-166-218/+312
| | | | | | | | | includes.h: Added termios.h for AIX. nttrans.c: Working NT SMB calls ! pipes.c: Use strequal instead of strcmp. server.c: Use #defines rather than numbers. smb.h: Updated NT SMB #defines. Jeremy.
* Makefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.Jeremy Allison1998-07-166-22/+106
| | | | | | | | | | | | ipc.c: loadparm.c: printing.c: Added code from <Dirk.DeWachter@rug.ac.be> to implement print queue pausing. New parameters are "queuepause command" and "queueresume command". util.c: Added fix for mount options in autmount map. lib/rpc/include/rpc_misc.h: Removed duplicate pipe names for Jean-Francois. Jeremy.
* util.c: I've added a function called mem_dup(). Similar to strdup(),Christopher R. Hertel1998-07-152-1/+15
| | | | | | | mem_dup() allocates the required memory before copying the source data. It returns NULL if memory could not be allcoated, else a pointer to the newly allocated memory. proto.h: Rebuilt to add the prototype for mem_dup().
* loadparm.c:Jeremy Allison1998-07-146-115/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | With apologies to Charlton Heston and Pierre Boule. "You damn fools, you finally did it". Changed default security mode to be security=user. Yes this is a big (although small in code) change. It's something we've been discussing for a while, to finally wean people off the legacy security=share mode which is *never* what you want. Jeremy. nmbd_incomingrequests.c: Bug fix for nmbd core dumps caused by overrun. Found by <samuel@public.szonline.net>. nttrans.c: More NT smb stuff. reply.c: Unlink will overwrite an existing file. Well you learn something new about POSIX every day. :-). server.c: Tidyup unreadable code. smbpasswd.c: Code to allow -U remote_username to allow ordinary users to change remote passwords if their NT username is different from their UNIX username. Patch from <torbjorn.lindh@allgon.se>. Jeremy.
* Added strupper() function call to up-case the scope field in theChristopher R. Hertel1998-07-141-6/+7
| | | | | | | | make_nmb_name() function. Database lookups (eg. gdbm) will often use byte-by-byte comparisons, so it is important that the case and padding are correct. Chris -)-----
* nntrans.c: Fully implemented transact rename.Jeremy Allison1998-07-114-7/+44
| | | | | | reply.c: Added NT specific rename if exists flag to rename_internals(). smb.h: Added NT rename flag. Jeremy.
* nttrans.c: More NT SMB stuff.Jeremy Allison1998-07-114-76/+104
| | | | | | | | reply.c: Broke out the internals of reply_mv so that they may be called externally from the NT transact rename. server.c: Changed stat calls to sys_stat - found in code review of bugfix. Jeremy.
* Fix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>Jeremy Allison1998-07-102-2/+9
| | | | | | | - the Files array was storing the 'dos_to_unix' translated name, rather than the untranslated name. This could case problems when the name was run through dos_to_unix again. Jeremy.
* AIX patch from Michael Wojcik <mww@microfocus.com> adding detailJeremy Allison1998-07-101-4/+135
| | | | | to the AIX specific (and undocumented) setpriv and setuidx calls. Jeremy.
* Needed fix to SIGHUP handling donated by branko.cibej@hermes.siJeremy Allison1998-07-091-8/+29
| | | | | (I can't believe we've had that bug so long :-). Jeremy.
* New version of the DFS_AUTH code from Karsten Muuss <muuss@or.uni-bonn.de>Jeremy Allison1998-07-091-39/+242
| | | | Jeremy.
* Fixing Oops. Thought I had added these - but not!John Terpstra1998-07-092-0/+309
|
* Fixed typos and reformatted doco.John Terpstra1998-07-092-9/+22
|
* NT SMB trans reply code.Jeremy Allison1998-07-093-74/+301
| | | | Jeremy.
* Implementing more NT SMB functionality.Jeremy Allison1998-07-081-82/+332
| | | | Jeremy.
* includes.h: Fixes for QNX 4.x.Jeremy Allison1998-07-071-1/+6
| | | | Jeremy.
* Fixed (hopefully) last bug with username mapping.Jeremy Allison1998-07-071-4/+5
| | | | | | map_username wasn't returning true on a map which was causing find_service not to find a home directory. Jeremy.
* Corrected info.Jeremy Allison1998-07-071-6/+6
| | | | Jeremy.
* password.c: Fixes to allow Win95 clients to have lm encrypted passwordsJeremy Allison1998-07-064-15/+20
| | | | | | | | | recognised. lib/rpc/client/cli_login.c: Fix debug comment. lib/rpc/parse/parse_misc.c: Fix for passing null pointers. lib/rpc/parse/parse_net.c: Send correct password lengths when called from Win95. Jeremy.
* Digital UNIX does not seem to set OPTIND if there are noRichard Sharpe1998-07-061-0/+10
| | | | | | | | | | command line parameters. Added simple code to smbtar to check for paramters and pump out a usage message if there are none. Regards Richard
* Added Australian consultant.Jeremy Allison1998-07-061-27/+175
| | | | Jeremy.
* Updated the 'samba does not allow multi-workgroups & WINS' section. StillJeremy Allison1998-07-061-6/+9
| | | | | leave the info there, but add a caveat. Jeremy.
* Added as rapid config guide for cross subnet / cross workgroup browsing.John Terpstra1998-07-051-0/+212
|
* Updated in line with recent samba-bugs postings.John Terpstra1998-07-051-2/+8
|
* Updating Unix installation notes.John Terpstra1998-07-052-2/+55
|
* Fixed typos pointed out by Pekka Savola <Pekka.Savola@netcore.fi>John Terpstra1998-07-051-5/+5
|
* Fix for pidfile startup message.Jeremy Allison1998-07-022-36/+35
| | | | Jeremy.
* nttrans.c: More NT SMB stuff.Jeremy Allison1998-07-022-4/+11
| | | | | | | shmem_sysv.c: Fix for shared memory problems on several systems, Second and subsequent use of shmget should use zero as the size. Fix from Veselin Terzic <vterzic@systems.DHL.COM> Jeremy.
* chgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIXJeremy Allison1998-07-024-45/+55
| | | | | | | password change core dump bug. nmbd_subnetdb.c: Make namelist_entry_compare() static. nttrans.c: More NT SMB stuff. Jeremy.
* includes.h: AIX fix.Jeremy Allison1998-07-014-28/+119
| | | | | | | | | nttrans.c: More NT SMB work. smb.h: More NT SMB defines. trans2.c: Change call response as I now have docs on what the flags mean. #ifdef it with JRATEST until I'm sure it's ok though. Jeremy.
* nttrans.c: More code towards NT protocol.Jeremy Allison1998-06-303-21/+109
| | | | | | smb.h: More code towards NT protocol. time.c: Fix for sco bug. Jeremy.
* nmbd_elections.c: Removed force elections code to bring into line with 1.9.18.Jeremy Allison1998-06-294-7/+26
| | | | | | | | | nmbd_namelistdb.c: Added comment for Chris. nmbd_subnetdb.c: Went back to Chris's comparison code as with the make_nmb_name change it all works now. lib/rpc/server/srv_netlog.c: Ensure we return 'account disabled' for disabled accounts, rather than crashing. Jeremy.
* Added code to do elections when told to do so.Jeremy Allison1998-06-271-2/+9
| | | | Jeremy.
* nisppass.c: Fixed incorrect parameter usage.Jeremy Allison1998-06-2710-50/+126
| | | | | | | | | | | | | | | | | | | | nmbd_become_lmb.c: Add 'force_new_election' parameter to some functions. This allows the start of the election to be done *after* the demotion from local master browser is done. Also changed code so release of 1d name is done immediately to allow other local master to gain it. nmbd_elections.c: Ensured no elections are run until we have registered the WORKGROUP<1e> name that we must listen on to participate in elections. nmbd_incomingdgrams.c: Use force_new_election code. nmbd_namelistdb.c: Make update_name_in_namelist static. nmbd_subnetdb.c: Fix bug in comparison function. We cannot use memcmp as structure packing may make this fail. nmbd_packets.c: Ensure that we only send one release packet when sending a broadcast packet. nmbd_workgroupdb.c: Ensure we put the correct value in the ElectionCriterion field. nmblib.c: Ensure make_nmb_name zero's the struct nmb_name. Jeremy.
* clitar.c: Fixed gcc warning with comment in /* */ code.Jeremy Allison1998-06-252-13/+23
| | | | | | | nmbd_winsserver.c: Remember to free packet in multi-homed register code. Use correct query_name_from_wins_server call instead of query_name call in multihomed code. Jeremy.
* Minor cosmetic change. I up-cased internal #defines.Christopher R. Hertel1998-06-258-13/+45
|
* The function add_name_to_subnet(), in file nmbd_namelistdb.c, returns aChristopher R. Hertel1998-06-236-21/+24
| | | | | | | | | | | | | | pointer to the newly constructed name list entry. In most cases, this return value is ignored. The two exceptions are in asyncdns.c and nmbd_winsproxy.c. Most of the calls which ignored the return value were not cast to void, so I added the cast. This helped me sort out which calls really did use the return value. I also discovered one case, in nmbd_winsserver.c, in which the return value was being stored to a variable which, in turn, was not used. Chris -)-----
* Arrrgh, one more fix. Restores of long file names wereRichard Sharpe1998-06-221-2/+7
| | | | | | | | | | broken ... Added a bzero of the buffer the names went into ... Seems OK now ... Richard Sharpe