summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* configure: Changes for extra headers.Jeremy Allison1998-08-156-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure.in: Source for header changes. client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile. include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers. include/includes.h: Headers for the above. include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int). lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/debug.c: Fixed signal functs. lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile. libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem_sysv.c: Fixed error messages in sysV stuff. nmbd/asyncdns.c: Fixed signal functs. nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/nttrans.c: Fixed fsp code path. smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem. smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/trans2.c: Fixed core dump bug. smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile. Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-143-10/+269
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* Makefile.in: Changed so that make proto will work with ldap & nisplus.Jeremy Allison1998-08-141-3/+134
| | | | | | | | locking/locking.c: Made #ifdef'ed out functions static for Make proto. lib/util.c: Re-instated old mask_match code for UNIX filesystem checks only. Client calls use the new mask_match code. Changed the name of the old function to unix_mask_match. Jeremy.
* Uh... I'm checking stuff in. Jeremy will by *so* pleased :)John Blair1998-08-131-0/+159
| | | | | | | | netatalk.c contains the meat of the code required to move Macintosh resource forks around when Windows users manipulate files created by a mac. This allows for greater integration between netatalk and Samba, but is, of course, potentially a recipe for disaster. All the netatalk related code is insulated by #ifdefs from the standard build.
* I've added a dbgflush() function to debug.c. Calling this will cause theChristopher R. Hertel1998-08-121-5/+31
| | | | | | | | | debug format buffer to be written out (and reset). fflush() is also called to force the issue. I replaced the call to fflush() in client.c with a call to dbgflush(), which seems to have fixed the problem that Andrew was working on (i.e., that the prompt was not displayed when using smbclient). Chris -)-----
* Cleaned up some lint warnings (functions with return values that wereChristopher R. Hertel1998-08-111-12/+13
| | | | ignored).
* I've added a test for lp_loaded() so that timestamps *will* be outputChristopher R. Hertel1998-08-111-4/+9
| | | | | | | before the config file has been loaded. Otherwise the default is no timestamp. Chris -)-----
* fixed a nasty bug in debug.cAndrew Tridgell1998-08-111-1/+1
| | | | | | | | | | | | | | Debug1() was being called like this: Debug1( format_bufr ); but if format_bufr contains any %s or other % arguments (such as when processing a smb.conf file containing % macros) then smbd dies a horrible death. The quick fix is to use: Debug1( "%s", format_bufr);
* make sure that a fault cannot occur twice. The new Debug1() code isAndrew Tridgell1998-08-111-18/+22
| | | | | | | causing seg faults on my machine and because the fault code calls DEBUG() it is looping! now to find the bug in the Debug1() code ...
* moved access.c into lib/ from smbd/ as it is needed by testparm. IAndrew Tridgell1998-08-101-216/+169
| | | | | modified it not to need any smbd specific structures and instead pass things from smbd.
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-091-0/+1
|
* added ignore rules for the dummy filesAndrew Tridgell1998-08-091-0/+1
|
* these dummy files are needed for autoconf processingAndrew Tridgell1998-08-091-0/+0
|
* added --with-nisplus-home optionAndrew Tridgell1998-08-081-4/+4
|
* More formatting changes. Mostly converted some DEBUG() calls to DEBUGADD()Christopher R. Hertel1998-08-031-3/+4
| | | | | | so that we wouldn't get too many timestamps. Chris -)-----
* First implementation of ChangeNotify - this version only checksJeremy Allison1998-08-032-3/+4
| | | | | | | | | | | | | | | | | | | for changes in the directory modify timestamps. A better version will look at the requested client flags, and create a hash that represents the current state of the directory, and check against this instead. debug.c: Added lp_timestamp_logs() function. loadparm.c: Added "change notify timeout" in seconds (default 60) - this is the scan rate for a directory. Added ""timestamp logs" boolean - default True. Turns off log timestamps (so I can read them :-). nttrans.c: ChangeNotify implementation. server.c: ChangeNotify implementation. shmem_sysv.c: Added exits on shmem errors (without them smbd can core dump if some calls fail). smb.h: Added ChangeNotify flags for future use. util.c: Tidied up typedef. Jeremy.
* This is the remaining set of changes needed to replace the changes lostChristopher R. Hertel1998-08-031-11/+7
| | | | | | | | when Andrew and I were both working with util.c. I really don't know how I lost the autoconfigure changes (honest, I *did* run frequent updates). Chris -)-----
* I have fixed some of the autoconfigure problems. I'm studying the diffsChristopher R. Hertel1998-08-031-9/+13
| | | | | | | for the rest. I've found that only debug.h seems to be out of sync (i.e., util.c itself appears to be okay). Chris -)-----
* As per a Andrew's message, I went through and removed the timestring()Christopher R. Hertel1998-07-311-3/+3
| | | | | | | | | timestamps from several DEBUG messages. The timestamps are redundant now that DEBUG() provides them automatically. There are still a few more files to do, but I've got to get home for dinner. Chris -)-----
* Debugging functions are now in their own module.Christopher R. Hertel1998-07-311-0/+533
| | | | Chris -)-----
* This is the checkin of the debug changes.Christopher R. Hertel1998-07-311-278/+1
| | | | | | | | | | | Makefile.in: I've added debug.o. proto.h : Rebuilt, as is standard for these sorts of things. smb.h : New macros, etc. util.c : Debug code removed. I'll check in debug.c in the next step. Chris -)-----
* added test for getpwanam().Andrew Tridgell1998-07-311-1/+1
|
* Makefile.in: Moved UBIQX stuff into UTILOBJ.Jeremy Allison1998-07-301-35/+45
| | | | | | | | | | | | | | | | loadparm.c: Added "ole locking compatibility" option (default "true"). locking.c: Changes to implement union in files_struct. locking_shm.c: Changes to implement union in files_struct. nttrans.c: Made opening a directory explicit (we have to). Added create directory code for nttrans. reply.c: Changes to implement union in files_struct. server.c: Changes to implement union in files_struct. Added create directory code. trans2.c: Changes to implement union in files_struct. smb.h: Changes to implement union in files_struct. util.c: Changed linked list code to UNIQX linked list. This will make the other lists I need to implement for ChangeNotify and blocking locks easier. Jeremy.
* fixed a bug in the replacement inet_ntoaAndrew Tridgell1998-07-291-1/+1
|
* test for a broken inet_ntoa and replace it if necessary (forAndrew Tridgell1998-07-291-0/+15
| | | | IRIX+gcc-2.8.1)
* get rid of the runtime test for broken getgroups() and add a compileAndrew Tridgell1998-07-291-7/+7
| | | | | time test instead. This also allows us to get rid of the igroups element of a couple of structures.
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-2913-564/+757
|
* locking.c: Added lock type to is_locked() and do_lock()Jeremy Allison1998-07-231-27/+54
| | | | | | | | | | | | 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.
* Makefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.Jeremy Allison1998-07-161-1/+29
| | | | | | | | | | | | 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-151-0/+13
| | | | | | | 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().
* Fix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>Jeremy Allison1998-07-101-1/+1
| | | | | | | - 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.
* 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.
* Fix for pidfile startup message.Jeremy Allison1998-07-021-35/+34
| | | | Jeremy.
* nttrans.c: More code towards NT protocol.Jeremy Allison1998-06-301-2/+6
| | | | | | smb.h: More code towards NT protocol. time.c: Fix for sco bug. Jeremy.
* clientgen: Added USE_SSL for client shutdown.Jeremy Allison1998-06-161-19/+0
| | | | | | | | | | | | clitar.c: Added 'Samba style' comments before string_create_s(). loadparm.c: Fixed missing comma in SSL code. util.c: Removed string_create_s(). Currently it's only called from clitar.c and having it here as well as a static in clitar causes the compile to break (Richard, please decide where you want this function). lib/rpc/parse/parse_net.c: Fix from <anders.blomdell@control.lth.se> to stop coredump on missing parameter. Jeremy.
* CLITAR changes to overcome some reported problems and add Jay's changesRichard Sharpe1998-06-161-0/+19
|
* Added SSL support from Christian Starkjohann <cs@obdev.at>Jeremy Allison1998-06-161-16/+64
| | | | | | | This patch may not yet compile with -DUSE_SSL enabled, further Makefile changes may be needed. But it was important to get this code in place before I go off to USENIX. Jeremy.
* Makefile: Added ubi_sLinkList.o as the groupname.o file needs it. Added ↵Jeremy Allison1998-06-131-212/+127
| | | | | | | | | | | | | | | groupname.o includes.h: Added ubi_sLinkList.h include. loadparm.c: Added groupname map parameter. password.c: Fix HPUX big_crypt. username.c: New user_in_list() code. Moved groupname map code to groupname.c lib/rpc/server/srv_util.c: Added lookup_wellknown_sid_from_name(). New groupname map stuff. Note that nothing currently uses this but at compiles ok. Jeremy.
* ipc.c: map_username is now a BOOL function.Jeremy Allison1998-06-121-16/+187
| | | | | | | | | | | reply.c: map_username is now a BOOL function. server.c: Added capability to do map_username on service names when looking for a home directory. That's what the original code would do. lib/rpc/server/srv_util.c: Changed domain_ to builtin_ for BUILTIN aliases. username.c: Work in progress on groupname map parameter. Jeremy
* Minor changes as I've now discovered gcc -pedantic-errors. ThisJeremy Allison1998-06-101-1/+1
| | | | | does the signed/unsigned warnings I've been missing. Jeremy
* De-coupled the mapping of a Windows to UNIX username from the Get_PwnamJeremy Allison1998-06-101-26/+27
| | | | | | | | | | | | username case conversion wrapper. It is now (very) explicit where we are mapping between an incoming Windows username, and when we are doing a UNIX password entry lookup, which may change the case of the given username. This makes things *much* clearer (IMHO:-) and will ease the adding of the 'groupname map' parameter, and the addition of the special 'jeremy' mode for Samba where unix users will not be needed. (We must think of a better name for it :-). Jeremy.
* Fixed file descriptor leak in open_socket_out - this couldJeremy Allison1998-06-041-0/+1
| | | | | cause nmbd to run out of fd's. Test case found by Eloy Paris. Jeremy.
* Added Paul Eggerts LocalTime patch.Jeremy Allison1998-05-291-8/+28
| | | | Jeremy.
* Ooops - fixed Win95 crash bugs with earlier code.Jeremy Allison1998-05-271-3/+7
| | | | Jeremy
* Newly re-written do_match and mask_match functions, with theJeremy Allison1998-05-271-103/+235
| | | | | | | | | | | | | | | | | | | | | | | help of Ums Harald <Harald.Ums@pro-sieben.de>, who has been testing our 8.3 wildcards with a test suite. With his new code for 8.3 matching, this is the test done (I'm quoting from his email) "I tested it by generating a directory with about 7600 Files and run automatc tests with about 4000 patterns. The result from Win95 -> WinNT and Win95 -> Samba where identical according to diff." I have also re-written the long filename wildcard code, so that doing DIR a*z now matches files : AAA.BBB.CCCC....ZZZZ correctly, and other fixes besides. I sincerely hope I can lay this (horrid) issue to rest now :-). Jeremy.
* smb.h: More NT SMB stuff (just defines).Jeremy Allison1998-05-261-1/+7
| | | | | | | | | | | smbpass.c: Do *NOT* make this function static. It breaks the compile on gcc util.c: Getting closer to MS wildcard semantics. A trailing '*' matches any trailing dot-separated components. trans2.c: Removed hacks that change multiple '?' -> '*' as this breaks things now. trans2.h: Removed NT_FILE_ATTRIBUTE_NORMAL - now FILE_ATTRIBUTE_NORMAL is defined in smb.h. Jeremy.
* fix slprintf for sunos4 in head branchAndrew Tridgell1998-05-201-1/+2
|
* Fix to do NT wildcard matching.Jeremy Allison1998-05-191-2/+24
| | | | Jeremy.
* passdb.c: Fixed typo in coment.Jeremy Allison1998-05-191-31/+22
| | | | | | | | smb.h: Removed comments no longer valid. smbpass.c: Stopped dummy function from being prototyped. util.c: Fix for multibyte char problems with strlower, strupper and string_replace. Jeremy.
* Fixed signed/unsigned warning.Jeremy Allison1998-05-191-1/+1
| | | | Jeremy.