summaryrefslogtreecommitdiffstats
path: root/source3/lib/debug.c
Commit message (Collapse)AuthorAgeFilesLines
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-7/+6
| | | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* r1834: prevent infinite recusion in reopen_logs() when expanding the ↵Gerald Carter2007-10-101-1/+7
| | | | | | smb.conf variable %I (This used to be commit 08037bd4427a99150c1cc65770681ec3f92f4ad5)
* r1425: Fix memleak in interactive mode. Reformat..Jeremy Allison2007-10-101-312/+292
| | | | | Jeremy. (This used to be commit 5d720e52d749489726c2c671c6cac2d706f750c8)
* r772: fix cut and paste error in commentHerb Lewis2007-10-101-1/+1
| | | | (This used to be commit a3bb4909c34c50673e0859be35200a8628ecdb8c)
* r428: add acls debug classHerb Lewis2007-10-101-0/+1
| | | | (This used to be commit b7703799f8899affda205eacb0bf79cf8e2b9362)
* r416: add a newline to the debuglevel message returned stringHerb Lewis2007-10-101-3/+4
| | | | | and have smbcontrol print the PID with it (This used to be commit d3edf71885bfb5d342e62d46542db8ca814f3303)
* source code fix for bug 1095 -- honor the '-l' optionGerald Carter2004-03-261-0/+7
| | | | (This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
* * Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher2004-01-151-0/+1
| | | | | | | | | | XFS_GROUP_QUOTA -> GRPQUOTA * Fix disk_free calculation with group quotas. * Add debug class 'quota' and a lot of DEBUG()'s to the quota code. metze (This used to be commit e9e5e2036f13ff847aa3ef52e8be657bef7d5774)
* And finally IDMAP in 3_0Simo Sorce2003-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | We really need idmap_ldap to have a good solution with ldapsam, porting it from the prvious code is beeing made, the code is really simple to do so I am confident it is not a problem to commit this code in. Not committing it would have been worst. I really would have been able to finish also the group code, maybe we can put it into a followin release after 3.0.0 even if it may be an upgrade problem. The code has been tested and seem to work right, more testing is needed for corner cases. Currently winbind pdc (working only for users and not for groups) is disabled as I was not able to make a complete group code replacement that works somewhat in a week (I have a complete patch, but there are bugs) Simo. (This used to be commit 0e58085978f984436815114a2ec347cf7899a89d)
* Merge of REQ_DEBUGLEVEL messaging and debug_count fixes from HEAD.Tim Potter2003-01-301-12/+7
| | | | (This used to be commit abb112ba2ad362036c7b3f340d5f64d6fcc0cd3c)
* Removed duplicate fn to avoid compiler warning. (from HEAD - tpot).Jeremy Allison2003-01-291-0/+2
| | | | | Jeremy. (This used to be commit 60be9a2f1e6d18562218a55e1a1f753e34fb1e5b)
* Merge from HEAD - baseless parinoia about never having a closed dbf (the debugAndrew Bartlett2003-01-041-2/+4
| | | | | | | file pointer). Andrew Bartlett (This used to be commit c8a809a2a83974330bc1015d07d69f40a4a09610)
* patch to include support for daemontools from Michael HandlerGerald Carter2003-01-031-0/+1
| | | | (This used to be commit a8db1b611d83bfd8dcf60f1e6d8fcbf57c798528)
* Merge from HEAD:Andrew Bartlett2002-11-151-3/+3
| | | | | | | | | | | | | - heimdal updates to configure - make DEBUG() const - add testsuite for: - preexec - preexec close - valid users - fix testsuite for 'invalid users' Andrew Bartlett (This used to be commit aa41fb8703db4a4ecd3b353874c99a994e8ed630)
* Last sync with HEADJelmer Vernooij2002-11-091-11/+2
| | | | (This used to be commit 1175b62337f5c29954cd5e8dfdc2327c9c80748c)
* Try to catch up on the code I've put into HEAD that should be in 3.0:Andrew Bartlett2002-10-261-1/+1
| | | | | | | | | | - vorlan's hosts allow with DNS names patch - use x_fileno() in debug.c, not the struct directly. - check for server timeout on password change (was reporting success) - better error/status loggin in both the pam_winbind client and winbindd_pam server code. - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway. (This used to be commit 9fa1863d8e7788eda83911ca2610754486b33069)
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-9/+9
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* sync 3.0 branch with headJelmer Vernooij2002-08-171-1/+7
| | | | (This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-73/+290
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* getpid() -> sys_getpid()Tim Potter2002-03-141-2/+2
| | | | (This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* merge changes from 2.2 branch to prevent smb.conf from changing debug levelHerb Lewis2002-01-071-0/+3
| | | | | of commands when specified on command line. (This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)
* More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett2001-10-291-15/+16
| | | | | | | Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
* smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison2001-10-271-1/+2
| | | | | | lib/debug.c: Fix for potential null pointer access. Jeremy. (This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
* Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison2001-10-021-2/+8
| | | | | | | other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy. (This used to be commit 94403d841710391ec26539e4b4157439d5778ff7)
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-17/+17
| | | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
* got rid of INFO: msgs at debug level 1Andrew Tridgell2001-07-251-2/+2
| | | | (This used to be commit e6773b08a4a1a54dca4a2e2ec5d4e9c43383b072)
* got rid of insanely verbose debug messages on startupAndrew Tridgell2001-07-061-1/+1
| | | | (This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-1/+1
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* Fix for race condition found by Herb where we can end up with a NULL dbf.Jeremy Allison2001-06-221-8/+0
| | | | | Jeremy. (This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)
* If a debug class was explicitly set to zero the debug system would notTim Potter2001-06-011-14/+36
| | | | | | | | | | | | | | | | | recognise it as there was no distinction made between zeroing a debug class and just not setting it to anything. I've added a debuglevel_isset array in parallel with the debuglevel_class array to fix this. Added a couple of new debug classes which I might start filling out to get smb, rpc header and rpc marshall/unmarshalling debugs tidied up. Fixed a bunch of cut&paste bugs in include/debug.h Modified smbcontrol and the messaging system debug handler to like the debuglevel_isset stuff. (This used to be commit 391e7caf76cbc22021629ef0ec5e0c32806edfd7)
* Hey what happened to my debug messages? Early exit from reopen_logs()Tim Potter2001-05-071-0/+11
| | | | | if using stdout_logging. (This used to be commit 831b0983bd799fd73de18921f09991a1647ec482)
* - added test for vasprintfAndrew Tridgell2001-04-281-42/+0
| | | | | | | | | - cleaned up GNUC printf attribute macros - added enum handling in mkproto - removed non-vararg code - made slprintf and vslprintf just macros for snprintf and vsnprintf - don't need slprintf code any more (This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
* More %d (uid_t) stuff...Jeremy Allison2001-04-271-3/+3
| | | | | Jeremy. (This used to be commit 73b425121a8c99af3ed7adbdcff3f6f0cec92ac7)
* Patch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"Jeremy Allison2001-03-271-51/+83
| | | | | | | problems with smbd failing to create a log file. If we can't create a log file keep using the old file. Jeremy. (This used to be commit c4e6aa1322fa7bc59708163c42eef6ccbd6c2305)
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-2/+7
| | | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
* up the debug level of the debug level change msgAndrew Tridgell2001-02-201-2/+2
| | | | (This used to be commit 9b25342f4ac4a250b3a10a3bb048ca6baa2ca41e)
* It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2kJeremy Allison2001-02-131-6/+6
| | | | | | clients to join a Samba domain - odd or even domain name length. Needs more testing. Jeremy. (This used to be commit 408672d38261e34cc3714200617b35464d88f931)
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-6/+122
| | | | | | updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
* Fix for a problem with the new messaging system. If a sender is using theJeremy Allison2000-11-161-1/+1
| | | | | | | | | | | | | | | messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy. (This used to be commit 3aa7995660395ecb85c8e35b638fa9fbbb952558)
* Merge in Herb's changes from 2.2.Jeremy Allison2000-11-101-1/+1
| | | | | Jeremy. (This used to be commit 24d76c5fbda29d89c96d7c22193ec2eb93ad3887)
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-121-1/+1
| | | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election (This used to be commit f1c49ca7ce56bc39259041a71479e84ebf53eeca)
* much nicer message interface. We now register dispatch functions,Andrew Tridgell2000-09-121-18/+17
| | | | | | | | | | allowing new bits of code or vfs modules to register functions without impacting on the messaging code itself. Also note that multiple registrations for the same message type are possible allowing the same message to be delivered to multiple parts of the code (possibly useful for reload messages). (This used to be commit c3350c77f52cade48d2945574e09cb630af85b92)
* the first cut of the internal messaging system.Andrew Tridgell2000-09-111-44/+17
| | | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message. (This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
* made reopen_logs() always re-open logs, not try and be smart about notAndrew Tridgell2000-08-281-37/+34
| | | | | | re-opening in some circumstances. This fixes a problem where a HUP does not re-open logs and leaves the log open on a unlinked file. (This used to be commit f99f028c77482e591741df2a3da7f036f7409a68)
* totally rewrote the async signal, notification and oplock notificationAndrew Tridgell2000-06-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handling in Samba. This was needed due to several limitations and races in the previous code - as a side effect the new code is much cleaner :) in summary: - changed sys_select() to avoid a signal/select race condition. It is a rare race but once we have signals doing notification and oplocks it is important. - changed our main processing loop to take advantage of the new sys_select semantics - split the notify code into implementaion dependent and general parts. Added the following structure that defines an implementation: struct cnotify_fns { void * (*register_notify)(connection_struct *conn, char *path, uint32 flags); BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t); void (*remove_notify)(void *data); }; then I wrote two implementations, one using hash/poll (like our old code) and the other using the new Linux kernel change notify. It should be easy to add other change notify implementations by creating a sructure of the above type. - fixed a bug in change notify where we were returning the wrong error code. - rewrote the core change notify code to be much simpler - moved to real-time signals for leases and change notify Amazingly, it all seems to work. I was very surprised! (This used to be commit 44766c39e0027c762bee8b33b12c621c109a3267)
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | | of doing a system call every time we want to just get our pid. Jeremy. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
* Log file check patch from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>.Jeremy Allison2000-04-151-6/+32
| | | | | | | | Modified to do checks in timeout processing not in main loop. This (IMHO) is the correct place as (a) we are already root, and (b) it is guarenteed to be called every 200 smb requests. Jeremy. (This used to be commit c3794fd29fdc4e5a0dbd725cdc24fe210934caf2)
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-151-4/+8
| | | | | | | | | | 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. (This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-196/+60
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)