1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

1642 Commits

Author SHA1 Message Date
Andrew Tridgell
c7ee025ead this is the bug change to using connection_struct* instead of cnum.
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6f9228b011 remove an unused variable 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7446540017 define INADDR_NONE if not already defined 0001-01-01 00:00:00 +00:00
Jeremy Allison
b68e756ff5 Makefile.in: Changed so that make proto will work with ldap & nisplus.
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.
0001-01-01 00:00:00 +00:00
John Blair
2ba4b66a74 Added the '--with-netatalk' option to turn Netatalk support on at
compile-time.
0001-01-01 00:00:00 +00:00
John Blair
1313451f21 Added the APPLEDOUBLE macro for the name of the directory containing
a file's Macintosh resource fork (normally .AppleDouble under Netatalk).
0001-01-01 00:00:00 +00:00
John Blair
05a5243d84 Uh... I'm checking stuff in. Jeremy will by *so* pleased :)
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.
0001-01-01 00:00:00 +00:00
Herb Lewis
3eff609b7a move smbd/print_svid.o from SMBD_OBJ1 to PARAM_OBJ so that nmbd, swat, etc.
will link when SYSV is defined. We may want to restructure this later and
move this to param instead of smbd ???
0001-01-01 00:00:00 +00:00
Herb Lewis
aa5648ce83 return to old behaviour of dumping ALL parameters 0001-01-01 00:00:00 +00:00
Jeremy Allison
83c54b01ba HAVE_STATVFS should be STAT_STAVFS (caused printing to break on IRIX).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c9695bdf2e More blocking lock code - still #ifdef'ed out - under development.
Jeremy.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
8880fc58fa Debug output formatting change. I'm trying to combine log lines that
really should be together.  Chris -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
c626828471 Changed a call to fflush(dbg) to dbgflush(). 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
a97460869f I've added a dbgflush() function to debug.c. Calling this will cause the
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 -)-----
0001-01-01 00:00:00 +00:00
Andrew Tridgell
638ee7d265 fixed the nested comment - Jeremy, do you want that unbecome_user() or
not?
0001-01-01 00:00:00 +00:00
Jeremy Allison
ddfbcc0581 include/smb.h: Removed dir_ptr. Not needed.
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.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
c69727bd29 Quick fix for a small problem. If you run 'nmbd -?' you'd get the usage
message *but the daemon would start anyway*.  I've added a call to exit()
in the default: case of the option processing loop.

Chris -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
53b433e6ab I've come up with a different scheme for doing the DEBUG() and DEBUGADD()
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 -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
8fedcfc48d Cleaned up some lint warnings (functions with return values that were
ignored).
0001-01-01 00:00:00 +00:00
Herb Lewis
5f5562ff60 strip out extra spaces from smbclient output that were added recently 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
efa67d6b2b Removed a stray semicolon in the DEBUGADD() macro. 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
fd7eaed59e I've added a test for lp_loaded() so that timestamps *will* be output
before the config file has been loaded.  Otherwise the default is no
timestamp.

Chris -)-----
0001-01-01 00:00:00 +00:00
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);
0001-01-01 00:00:00 +00:00
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 ...
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Herb Lewis
5fc8b4a1d5 update for new directory structure 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
745d38bfe7 moved username.c into lib/ so we no longer $(PASSDB_OBJ) in most
utilities
0001-01-01 00:00:00 +00:00
Andrew Tridgell
12c8028eb4 smbtorture now compiles 0001-01-01 00:00:00 +00:00
Andrew Tridgell
60cdb83f3f fixed the installation scripts for the new layout 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7fecc3d5a2 the rest of the binaries now compile and link 0001-01-01 00:00:00 +00:00
Andrew Tridgell
b92ce41c54 a few more things compile.
I'll do the rest tomorrow.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3ecfd271de swat compiles, with some even uglier hacks. we really have to do
something about our dependencies between seemingly unrelated code.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
34dd9b7945 close to having nmbd linking (just a bit of repository hacking to go) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d08fa39cec this gets smbd compiling and linking correctly with the new layout. 0001-01-01 00:00:00 +00:00
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));
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2512138980 another dummy file 0001-01-01 00:00:00 +00:00
Andrew Tridgell
687f76a17d added ignore rules for the dummy files 0001-01-01 00:00:00 +00:00
Andrew Tridgell
be762dc3de these dummy files are needed for autoconf processing 0001-01-01 00:00:00 +00:00
Andrew Tridgell
4fae7f129e the autoconf scripts are now converted to the new directory structure
now the Makefile .....
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7067261760 new directory structure in configure.in 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
70000c2190 added --with-nisplus-home option 0001-01-01 00:00:00 +00:00
Herb Lewis
8bf365a54a forgot to remove -nostrip option for packaging. Makes inst package too big. 0001-01-01 00:00:00 +00:00
Herb Lewis
737a58c156 add startswat.sh to automate starting swat with inetd
update make scripts to use new autoconfigure setup
0001-01-01 00:00:00 +00:00
Jeremy Allison
996c5ac97a Fixed memory leak when freeing ChangeNotify structures.
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00