summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Debug output formatting change. I'm trying to combine log lines thatChristopher R. Hertel1998-08-131-4/+4
| | | | really should be together. Chris -)-----
* Changed a call to fflush(dbg) to dbgflush().Christopher R. Hertel1998-08-121-1/+1
|
* I've added a dbgflush() function to debug.c. Calling this will cause theChristopher R. Hertel1998-08-122-6/+32
| | | | | | | | | 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 -)-----
* fixed the nested comment - Jeremy, do you want that unbecome_user() orAndrew Tridgell1998-08-121-2/+1
| | | | not?
* include/smb.h: Removed dir_ptr. Not needed.Jeremy Allison1998-08-117-108/+241
| | | | | | | | | | | | | | | locking/locking.c: First cut a blocking lock code. #ifdef'ed out for now. locking/locking_shm.c: Removed dir_ptr. Not needed. smbd/nttrans.c: More work on ChangeNotify - return is not an error and needs to be handled as a nttrans with zero params. Removed dir_ptr. Not needed. smbd/reply.c: smbd/server.c: smbd/trans2.c: Removed dir_ptr. Not needed. Hmmm. At the moment smbclient is broken - doesn't issue prompt correctly. This needs looking at. Jeremy.
* Quick fix for a small problem. If you run 'nmbd -?' you'd get the usageChristopher R. Hertel1998-08-111-1/+2
| | | | | | | message *but the daemon would start anyway*. I've added a call to exit() in the default: case of the option processing loop. Chris -)-----
* I've come up with a different scheme for doing the DEBUG() and DEBUGADD()Christopher R. Hertel1998-08-111-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macros that meets the RVALUE requirement and doesn't use the (a?b:c) format that Andrew called "ugly". I've added the new macros but kept the old macros within a #if 0..#else..#endif block in case I've missed somthing. Basically, I've used (void)( (a) && (b) ) or (void)( (a) && (b) && (c) ) instead of ( (a) ? (void)(b) : (void)(c) ) or similar. I have this compiled and running now. Here's the diff: $ cvs diff smb.h Enter passphrase for RSA key 'crh@Ruby': Index: smb.h =================================================================== RCS file: /data/cvs/samba/source/include/smb.h,v retrieving revision 1.172 diff -r1.172 smb.h 143a144,145 > #if 0 > 150a153,164 > > #else > > #define DEBUG( level, body ) \ > (void)( (DEBUGLEVEL >= (level)) \ > && (dbghdr( level, FILE_MACRO, FUNCTION_MACRO, (__LINE__) )) \ > && (dbgtext body) ) > > #define DEBUGADD( level, body ) \ > (void)( (DEBUGLEVEL >= (level)) && (dbgtext body) ) > > #endif Chris -)-----
* Cleaned up some lint warnings (functions with return values that wereChristopher R. Hertel1998-08-111-12/+13
| | | | ignored).
* strip out extra spaces from smbclient output that were added recentlyHerb Lewis1998-08-111-1/+1
|
* Removed a stray semicolon in the DEBUGADD() macro.Christopher R. Hertel1998-08-111-5/+5
|
* 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 ...
* Makefile.in: Added CHECK target back in (at Herb's request). AddedJeremy Allison1998-08-114-13/+48
| | | | | | | | manpath in (although we don't currently use it). client/client.c: Added John Blair's fixes for "put -". include/nterr.h: Added NT_STATUS_NOTIFY_ENUM_DIR error code. smbd/nttrans.c: Added in devious fix for one-shot NT change notify bug. Jeremy.
* update for new directory structureHerb Lewis1998-08-102-18/+19
|
* Makefile.in: Fixed make clean bug with CVS directory in bin/.Jeremy Allison1998-08-103-3/+22
| | | | | | | | | include/smb.h: Fixed bugs in Debug macro's with SGI compiler. smbd/trans2.c: Fixed bug reported by Zoltan Palmai <ZSPA@chevron.com> PR#8903 where get_lanman2_dir_entry() could return a mangled name as a resume key and call_trans2findnext() wasn't doing the same. Jeremy.
* moved access.c into lib/ from smbd/ as it is needed by testparm. IAndrew Tridgell1998-08-104-224/+183
| | | | | modified it not to need any smbd specific structures and instead pass things from smbd.
* split the system password checking routines out of smbd/password.c andAndrew Tridgell1998-08-107-1060/+2063
| | | | | into passdb/pass_check.c. This means SWAT no longer needs to link to smbd/password.c
* moved username.c into lib/ so we no longer $(PASSDB_OBJ) in mostAndrew Tridgell1998-08-102-27/+25
| | | | utilities
* smbtorture now compilesAndrew Tridgell1998-08-102-17/+10
|
* fixed the installation scripts for the new layoutAndrew Tridgell1998-08-1010-55/+62
|
* the rest of the binaries now compile and linkAndrew Tridgell1998-08-102-57/+68
|
* a few more things compile.Andrew Tridgell1998-08-094-51/+199
| | | | I'll do the rest tomorrow.
* swat compiles, with some even uglier hacks. we really have to doAndrew Tridgell1998-08-093-58/+105
| | | | something about our dependencies between seemingly unrelated code.
* nmbd compiles and links. I had to do some ugly stuff, putting files inAndrew Tridgell1998-08-092-86/+86
| | | | | | illogical places. Once I get everything compiled these will need to be revisited, but at least the new Makefile.in makes it really obvious what is out of place.
* close to having nmbd linking (just a bit of repository hacking to go)Andrew Tridgell1998-08-092-14/+379
|
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-0910-1819/+779
|
* removed the if statements from the DEBUG() macro definitions.Andrew Tridgell1998-08-091-4/+4
| | | | | | | | | | | Chris, you should never put if statements in macros, use the ugly (a?b:c) form instead, otherwise you can produce incorrect code when you have things like: if (foo) DEBUG((blah)); else DEBUG((blooh));
* another dummy fileAndrew Tridgell1998-08-091-0/+0
|
* added ignore rules for the dummy filesAndrew Tridgell1998-08-0911-0/+12
|
* these dummy files are needed for autoconf processingAndrew Tridgell1998-08-098-0/+0
|
* the autoconf scripts are now converted to the new directory structureAndrew Tridgell1998-08-093-15/+17
| | | | now the Makefile .....
* new directory structure in configure.inAndrew Tridgell1998-08-091-5/+6
|
* we have to have the test for -lsocket before the test for someAndrew Tridgell1998-08-082-340/+340
| | | | | functions (notably innetgr) to ensure we don't replace them if they are in -lsocket
* added --with-nisplus-home optionAndrew Tridgell1998-08-087-253/+296
|
* forgot to remove -nostrip option for packaging. Makes inst package too big.Herb Lewis1998-08-071-1/+1
|
* add startswat.sh to automate starting swat with inetdHerb Lewis1998-08-073-11/+38
| | | | update make scripts to use new autoconfigure setup
* Fixed memory leak when freeing ChangeNotify structures.Jeremy Allison1998-08-051-6/+6
| | | | Jeremy.
* nttrans.c: Fix change_notify. Queue processing code wasn't changing toJeremy Allison1998-08-042-18/+54
| | | | | | | | | the correct directory before doing the stat. Doh ! uid.c: Fix for performance in security=share mode. Invalid vuid meant that in security=share mode Samba was always doing the become_user/ undebome_user pairs for *every* smb. This code fixes it, but tridge should review for security implications. Jeremy.
* loadparm.c: Added "debug timestamp" synonym for Chris.Jeremy Allison1998-08-044-39/+29
| | | | | | | nttrans.c: Moved common code into function in server.c Removed left over debug level 0. server.c: Moved common code into function in server.c Jeremy.
* More formatting changes. Mostly converted some DEBUG() calls to DEBUGADD()Christopher R. Hertel1998-08-035-21/+30
| | | | | | so that we wouldn't get too many timestamps. Chris -)-----
* First implementation of ChangeNotify - this version only checksJeremy Allison1998-08-038-38/+344
| | | | | | | | | | | | | | | | | | | 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.
* One more minor change to the format of a DEBUG message. I broke up aChristopher R. Hertel1998-08-031-4/+9
| | | | | very long output line in become_domain_master_query_success(). Chris -)-----
* I finished removing timestring() calls from DEBUG() messages. Also wentChristopher R. Hertel1998-08-037-59/+96
| | | | | | | | | | through and changed some DEBUG() calls to DEBUGADD() to combine output under a single timestamp. There were too many timestamps. Note that Jeremy has told me that he's working on adding a config parameter to turn timestamps off. Cool. Chris -)-----
* Fixing clitar.c so that tar to stdout works correctly.Richard Sharpe1998-08-031-9/+9
| | | | | | | | | | Replaced printfs with DEBUG(0. Tested ... Works. Hope I didn't disturb the autoconf code ... It feels great to be able to run configure for Samba at long last! Regards Richard Sharpe
* 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-3116-273/+341
| | | | | | | | | 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-314-293/+70
| | | | | | | | | | | 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 -)-----