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

4911 Commits

Author SHA1 Message Date
Simo Sorce
4e0299d4c0 - sorry, forgot to check a pointer 0001-01-01 00:00:00 +00:00
Jeremy Allison
8d1dab74c2 Applied Michael Sweet's patch, with one minor signal change.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
1aef522452 - sorry, forgot to test a pointer 0001-01-01 00:00:00 +00:00
Jeremy Allison
1ab31e5db5 Made talloc_realloc() semantics match realloc(). JF was complaining :-).
realloc(NULL) == malloc. realloc(p,0) == free() - a no-op in talloc.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1685e41da0 Missing prs_align() was causing Win9x nexus tools to fail. security_info_sent
was being miss-parsed.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d4872c94c2 Fixed auto-alloc of dispinfo code when unmarshalling.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2f8b84bda0 Fixed extra file_free calls - my fault :-(.
Jeremy.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
c2977be340 Very minor cleanup. I was looking for another problem and found some bits
of code that were unclear.

Chris -)-----
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5d3f622375 This fix from Eelco Vriezekolk <eelco@nexus.com.na> is for a SIG11 bug where we
would always file_free(fsp) twice, once in close_file and once afterwoulds.

The bug was reported in SAMBA_2_2, but a code inspection shows it to be in HEAD
as well.  (Unfortunetly I don't have the facilites to actualy check this, but
the change is quite simple, makes sence and compiles).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
33f668b137 Re-ran configure. 0001-01-01 00:00:00 +00:00
Tim Potter
9db0332954 Only build the pam_winbind module if --with-pam used.
Replaced extra shell variable with_pam_for_crypto with a check against
$with_pam
0001-01-01 00:00:00 +00:00
Andrew Bartlett
aa5708de69 Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a73aefef09 Make smbtorture return status values for use in the build_farm tests.
This should not have changed behaviour, and it has been tested.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
a3925cb9c6 Fixed the nastiest locking bug to track down.... smb_pids are sent in the
lockingX calls - use that instead of smb_pid in the packet.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
15c64199cb Insure caught the fact that PTRDIFFs were being done between two unrelated
pointers.
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
db36ed1d80 "netbios aliases" and "interfaces" options change from P_STRING to P_LIST 0001-01-01 00:00:00 +00:00
Jeremy Allison
33dc250ebb Fix for building --with-profile for new vfscalls.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ba79d2a030 cli_read() was reading too many bytes. 0001-01-01 00:00:00 +00:00
Simo Sorce
200110a3b4 - fix bug in reply_nt- fix bug in reply_nt1 0001-01-01 00:00:00 +00:00
Jeremy Allison
015a077acc Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
0001-01-01 00:00:00 +00:00
Richard Sharpe
09837044a2 Fix another small problem with Makefile.in ... not doing the correct
check for whether or not we should build a shared library.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
58b981a56f This should return the build to normallity.
When you update an #ifdef'ed function, also update its matching null function
or all hell breaks loose on the build farm!

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
5c42845b5b Fixed the first locking error (test #8 found by locktest code from
Clarion locktest.
Jeremy.
0001-01-01 00:00:00 +00:00
Richard Sharpe
332f646fdc Modified Makefile.in to work properly. Define BLDSHARED as a variable in the makefile now. 0001-01-01 00:00:00 +00:00
Richard Sharpe
9585529455 These changes cause the libsmbclient stuff to always build a non-shared library and to build a shared library only for the four OSes that we currently like.
I will probably add HP/UX and AIX support based on the CUPS stuff soon ...
0001-01-01 00:00:00 +00:00
Jeremy Allison
7079300da6 Added LsaGetConnectedCredentials patch from Manoj Naik <manoj@almaden.ibm.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c24e6b41ea Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
001e9b7b54 From JF....
hi jeremy,

can you commit the following patch against HEAD. I can't do it right now

Thanks Tim for me. He changed the SAM_DISPINFO_1 array without checking if
he didn't break the server code. And he did.

So on my way I cleaned info_1, 2, .. 5

it may break winbind. I leave to tim the pleasure to fix it ;-)

        jf.

I added some talloc changes and checks for alloc fails.

Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
937b96feaa Experimental support for joining a domain without creating an account in
server manager first.  Just use the -U parameter to smbpasswd when joining
the domain:

	smbpasswd -r PDC -j DOMAIN -U administrator%password

Should also work with domain users with the 'add workstation to domain'
user right.
0001-01-01 00:00:00 +00:00
Tim Potter
008628fb8a Removed another silly static array. 0001-01-01 00:00:00 +00:00
Tim Potter
b4a9079833 Win9x weirdness. When setting the named pipe handle state on a Unicode
server, Win9x only sends \PIPE instead of \PIPE\.  Looks suspiciously like
an off-by one bug in the Win9x dce/rpc pipe code.
0001-01-01 00:00:00 +00:00
Tim Potter
30411d4004 Replaced memcpy() with memmove() to make safe_strcpy() safe for overlapping
source and destination.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2999eab5ab Use a logical cli_read(), removed the cli_read_one() hack.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5a5d33b946 param/loadparm.c: Fix for bad volume label, found by TAKAHASHI Motonobu
Samba Users Group Japan. Ensure same as in 2.2.x codebase.
Jeremy.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
8f2f09af0a Added info to some of the debug messages to get a better handle on a problem
people are reporting regarding multiple responses to queries on <1D> names.

There should only ever be one LMB but some users are seeing multiple replies
to queries for the LMB name.  This is probably due to nodes on the LAN that
have NetBIOS over NetBEUI and/or IPX enabled.  Previously, the debug message
did not include the IP address associated with the name.  It *did* include
the source address of the packet, but in the examples I've seen all of these
were the same, eg:

[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (2) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (3) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (4) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (5) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24

Note that all of the above are reported as having come from 129.130.10.24.
This should never happen.  If 129.130.10.24 is a WINS server it should
send a Negative Name Query Response for a <1D> name query (wierd but true).

So, are all of the above coming from different systems, all of which
think are the LMB?  Are they all coming from one system that is, for some
strange reason, replying five times to the same query?

Anyway, I needed more info so I've changed the debug messages.

Chris -)-----
0001-01-01 00:00:00 +00:00
Jeremy Allison
fe5cac150d Properly instrument print_job_start()/print_job_end() so every fail case
logs a debug. We need this to track fail cases.
Jeremy
0001-01-01 00:00:00 +00:00
Andrew Tridgell
83d0dc4b53 temporarily made smbclient a non-error target so that builds will succeed when it fails. This will give richard a chance to fix problems without breaking the tree 0001-01-01 00:00:00 +00:00
Jeremy Allison
39d4131a45 Syncup between 2.2 and HEAD.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d8e5409ebb on sco2 socketpair_tcp needs a bind 0001-01-01 00:00:00 +00:00
Andrew Tridgell
87f90d48d8 handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
0001-01-01 00:00:00 +00:00
Tim Potter
9874df0c22 Added some missing entries to usage().
Added -d option to set debug level.
0001-01-01 00:00:00 +00:00
Richard Sharpe
cc72c44e53 Added back the automatic build of libsmbclient.so in head.
This is so I can find out what platforms it fails on. I will pull it again tomorrow if there are too many problems, like > 2 platforms that it fails to build on, but will pop it back in again as I resolve platforms.
0001-01-01 00:00:00 +00:00
Richard Sharpe
8a873b5dfb Fix a stupid typo ... 0001-01-01 00:00:00 +00:00
Herb Lewis
45bf995bf6 SGI compiler fixes.
Jeremy
0001-01-01 00:00:00 +00:00
Martin Pool
8b0a5bc436 Add check for working AF_LOCAL sockets, which are borken
on RH7.0 with _LARGEFILE64_SOURCE, and probably not
present on non-Unix systems like VMS.
0001-01-01 00:00:00 +00:00
Jeremy Allison
274c0f5028 Ensure we always have a valid pointer on unmarshalling an SD with zero
ace entries.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
a48d480ce9 Put an 0x in front of a hex number. 0001-01-01 00:00:00 +00:00
Tim Potter
89eaaafe7d Fixed bug introduced by changeover of security descriptor code from
malloc() to talloc().  Previously, creating an ACL containing zero ACEs
would return a non-NULL pointer to zero bytes of memory.  The talloc() code
would return a NULL pointer making the ACL a NULL ACL instead of an empty
one.  The difference is a NULL ACL allows all access and an empty ACL
denies all access.

We solve this by calling talloc(ctx, sizeof(SEC_ACE) * num_aces + 1).
Heh.
0001-01-01 00:00:00 +00:00
Jeremy Allison
52143c0853 Always use DOMAIN\user first that this is the more specific case.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
442bf5cc9e fixed build
don't rush commits :)
0001-01-01 00:00:00 +00:00