1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

1238 Commits

Author SHA1 Message Date
Andrew Tridgell
5ae0401281 fixed a nasty bug in debug.c
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);
-
Andrew Tridgell
83122bae22 make sure that a fault cannot occur twice. The new Debug1() code is
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 ...
-
Jeremy Allison
4ac3091e57 Makefile.in: Added CHECK target back in (at Herb's request). Added
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.
-
Jeremy Allison
9d010e721c Makefile.in: Fixed make clean bug with CVS directory in bin/.
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.
-
Andrew Tridgell
162141d3b3 moved access.c into lib/ from smbd/ as it is needed by testparm. I
modified it not to need any smbd specific structures and instead pass
things from smbd.
-
Andrew Tridgell
90d93889d7 split the system password checking routines out of smbd/password.c and
into passdb/pass_check.c. This means SWAT no longer needs to link to
smbd/password.c
-
Andrew Tridgell
745d38bfe7 moved username.c into lib/ so we no longer $(PASSDB_OBJ) in most
utilities
-
Andrew Tridgell
12c8028eb4 smbtorture now compiles -
Andrew Tridgell
60cdb83f3f fixed the installation scripts for the new layout -
Andrew Tridgell
7fecc3d5a2 the rest of the binaries now compile and link -
Andrew Tridgell
b92ce41c54 a few more things compile.
I'll do the rest tomorrow.
-
Andrew Tridgell
3ecfd271de swat compiles, with some even uglier hacks. we really have to do
something about our dependencies between seemingly unrelated code.
-
Andrew Tridgell
beef5341fc nmbd compiles and links. I had to do some ugly stuff, putting files in
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.
-
Andrew Tridgell
34dd9b7945 close to having nmbd linking (just a bit of repository hacking to go) -
Andrew Tridgell
d08fa39cec this gets smbd compiling and linking correctly with the new layout. -
Andrew Tridgell
ab912448c1 removed the if statements from the DEBUG() macro definitions.
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));
-
Andrew Tridgell
2512138980 another dummy file -
Andrew Tridgell
687f76a17d added ignore rules for the dummy files -
Andrew Tridgell
be762dc3de these dummy files are needed for autoconf processing -
Andrew Tridgell
4fae7f129e the autoconf scripts are now converted to the new directory structure
now the Makefile .....
-
Andrew Tridgell
7067261760 new directory structure in configure.in -
Andrew Tridgell
d121204890 we have to have the test for -lsocket before the test for some
functions (notably innetgr) to ensure we don't replace them if they
are in -lsocket
-
Andrew Tridgell
70000c2190 added --with-nisplus-home option -
Jeremy Allison
996c5ac97a Fixed memory leak when freeing ChangeNotify structures.
Jeremy.
-
Jeremy Allison
c3663379fd nttrans.c: Fix change_notify. Queue processing code wasn't changing to
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.
-
Jeremy Allison
34ef55b722 loadparm.c: Added "debug timestamp" synonym for Chris.
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.
-
Christopher R. Hertel
3e7e5fad37 More formatting changes. Mostly converted some DEBUG() calls to DEBUGADD()
so that we wouldn't get too many timestamps.

Chris -)-----
-
Jeremy Allison
a0748c3f53 First implementation of ChangeNotify - this version only checks
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.
-
Christopher R. Hertel
9b5d431661 One more minor change to the format of a DEBUG message. I broke up a
very long output line in become_domain_master_query_success().
Chris -)-----
-
Christopher R. Hertel
247dbc9a24 I finished removing timestring() calls from DEBUG() messages. Also went
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 -)-----
-
Richard Sharpe
b968aa31ba Fixing clitar.c so that tar to stdout works correctly.
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
-
Christopher R. Hertel
bedefc2066 This is the remaining set of changes needed to replace the changes lost
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 -)-----
-
Christopher R. Hertel
b41cdbffb7 I have fixed some of the autoconfigure problems. I'm studying the diffs
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 -)-----
-
Christopher R. Hertel
60286cceca As per a Andrew's message, I went through and removed the timestring()
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 -)-----
-
Christopher R. Hertel
2c6dc27796 Debugging functions are now in their own module.
Chris -)-----
-
Christopher R. Hertel
653c17c1b8 This is the checkin of the debug changes.
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 -)-----
-
Andrew Tridgell
4eb28f7148 added test for getpwanam(). -
Jeremy Allison
3a5eea850b Makefile.in: Moved UBIQX stuff into UTILOBJ.
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.
-
Christopher R. Hertel
0637a49d5d In addition to the HAVE_FUNCTION_MACRO test that Andrew used as an example,
I also need to know if the __FILE__ macro exists.  I followed the example,
but ran into two problems:

1) I don't have the autoconf tools installed.
2) The instructions did not say which files should be checked in after
   running autoheader and autoconf.

So I'm checking in the modified acconfig.h and configure.in on the
assumption that the next time someone runs autoheader and autoconf my
new tests will be included.

Hope that's not a problem (and I'll try to grab a copy of autoconf from
somewhere).

Chris -)-----
-
Andrew Tridgell
cae580ccc3 added HAVE_FUNCTION_MACRO test -
Andrew Tridgell
15b666a0ce fixed sin_len test for FreeBSD -
Andrew Tridgell
fc1947b52a fixed a make proto bug pointed out by Chris. -
Andrew Tridgell
0bdb51af31 updated prototypes -
Andrew Tridgell
32bd713712 fixed a bug in the replacement inet_ntoa -
Andrew Tridgell
ddffbcbcb1 test for a broken inet_ntoa and replace it if necessary (for
IRIX+gcc-2.8.1)
-
Andrew Tridgell
f4c629bde2 ignore the auto-generated dummy file -
Andrew Tridgell
a7d4e6697f added Makefile to .cvsignore in the hope that this will prevent people
from committing changes to it.
-
Andrew Tridgell
8b25fe7341 get rid of the runtime test for broken getgroups() and add a compile
time test instead. This also allows us to get rid of the igroups
element of a couple of structures.
-
Andrew Tridgell
e7b6e8ef61 hopefully permissions are right now -
Andrew Tridgell
0cf6529341 still trying to get permissions right - CVS doesn't commit permissions changes it seems -