1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

15070 Commits

Author SHA1 Message Date
Tim Potter
490dbaec81 Fix some uninitialised variable warnings.
(This used to be commit 68945027b5dc6b5e1aee13e4df4d11a34e42a3a9)
2003-11-03 14:21:10 +00:00
Tim Potter
c8e84154af Printf fixes for 64-bit size_t.
(This used to be commit 8e2c543ebf65e24e73433f69b1c281e1558e9080)
2003-11-02 17:10:12 +00:00
Tim Potter
db2a7d0a7f Tidy up calls to uname so as not to produce output on stderr if
the command line argument being called isn't valid.
(This used to be commit d43922eade02d1826a108b45607f5776266fd05b)
2003-11-02 16:54:21 +00:00
Tim Potter
1f05df2b36 Use putenv() instead of setenv() in the winbind_{off,on}() functions. Some
platforms don't have setenv().
(This used to be commit a8b487c4cb5d181e59755f49063512b2729bccb5)
2003-11-02 16:22:28 +00:00
Tim Potter
31e6157dfd Add prototype for smbc_remove_unused_server() to fix compiler warning.
Bug #706.
(This used to be commit eaf69b1ae7883573830244664cb0a81661541d92)
2003-11-02 14:15:36 +00:00
Tim Potter
0dd2e07ea5 Cast to fix warning on Solaris sendfile - check buildfarm output
to see if this works!  Bug #706.
(This used to be commit 67ab91825db9b81b8b4f35e86a7eede0c7df5621)
2003-11-02 13:59:37 +00:00
Tim Potter
17131bb446 Whoops - missed a place where HAVE_STAT_ST_{BLOCKS,BLOCKSIZE} guards
should be present.
(This used to be commit 08aa3f712c193aac5ad3d30e720c218c642738c0)
2003-11-02 04:14:25 +00:00
Tim Potter
14c05904b8 Re-order link command for smbd, rpcclient and smbpasswd to ensure $LDFLAGS
occurs before any library specification.  Closes bug #661.
(This used to be commit 7af7fa9be22b4406c83fa24c46ed8af1a7bcf173)
2003-11-02 04:05:47 +00:00
Volker Lendecke
13fe54264e This binds the nmbd sending socket to the 'socket address'.
Hmmm. This is correct in 2.2. Obviously I did not test my 3.0 checkin at that
time. Now it hit me at a customer's site...

Volker
(This used to be commit a0e741aa684c756943969bdb4be20a02e588d27c)
2003-11-01 17:41:16 +00:00
Gerald Carter
94713905d1 prompt for password when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
(This used to be commit ca18ec0f901330c14a68c8a44d2a88a42bb7d92c)
2003-10-31 20:29:18 +00:00
Jeremy Allison
732fecd3a0 Patch from Aurlien Degrmont <adegremont@idealx.com>. "entry" is dependent
on "result", don't free result first.
Jeremy.
(This used to be commit c61a230c5ab7250c0812b422e0a533fbf5efbf17)
2003-10-31 19:16:59 +00:00
Tim Potter
ff700f3303 Sync up formatting of the va list stuff - the HEAD version was nicer.
(This used to be commit 6917391fbbe90fd7f854d05e18f4ceb23c68d78a)
2003-10-31 01:30:02 +00:00
Jeremy Allison
f23c2ff0a0 If nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy.
(This used to be commit aa668a0206b027923a333417309cb483c5a64265)
2003-10-30 20:09:13 +00:00
Gerald Carter
057c031d06 bug 696; check for an invalid fid before dereferencing the fsp pointer
(This used to be commit f5229d5d62510f981bd08ad8139675b50421e042)
2003-10-30 15:57:52 +00:00
Jeremy Allison
b7d72a3ce9 Check for nsswitch.h. Patch from albert chin (china@thewrittenword.com).
Jeremy.
(This used to be commit ce1024cc10e798d4ed3bc7f6358bc4ebe9737830)
2003-10-30 00:07:48 +00:00
Jeremy Allison
231124ced9 Fixes to check for wraps which could cause coredumps.
Jeremy.
(This used to be commit ad06edd1bb58cc5e2c38a364b1af96a933b770af)
2003-10-29 21:28:00 +00:00
Tim Potter
fdb2f57f62 Compile fix for tdbbackup when Samba needs to override non-C99
compliant implementations of snprintf.
(This used to be commit a38ab77b70c0918be411a6c299a23b5735393a2d)
2003-10-29 06:17:33 +00:00
Andrew Tridgell
059181a169 parameterise the listen backlog in smbd and make it larger by default. A backlog of 5 is way too small these days.
(This used to be commit bbb92d2b0ea6bc10c71bed62924bfc95c11172a5)
2003-10-29 04:58:48 +00:00
Jeremy Allison
2e46c7648b Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
(This used to be commit 26bfe37a10f7337acb8c5ac0e04fac7a8dddc769)
2003-10-28 18:32:03 +00:00
Alexander Bokovoy
80ebb3782a Update WHATSNEW.txt with proper version from release branch
(This used to be commit 4534ba5a9ff5fd0332267d0542b5285e5a732a4f)
2003-10-28 11:04:08 +00:00
Jeremy Allison
0ce2c6ecb8 Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
(This used to be commit 74148111e16a863d5a33511e5b15632a736d7e99)
2003-10-28 00:51:21 +00:00
Tim Potter
4ebe9f9167 Remove trailing comma on typedef enum. albert chin (china@thewrittenword.com)
(This used to be commit 67dd1c43664db7e2eec658da0ffefc3cdb5471bb)
2003-10-27 23:43:15 +00:00
Jeremy Allison
472df57e7b Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy.
(This used to be commit 8b9b635bd2759642c25fe0cea5eefbbe5af44193)
2003-10-27 20:09:15 +00:00
Richard Sharpe
55f8ca432b Remove some unused variables uncovered by the build farm.
(This used to be commit 084e4678c0876ebd6e756192866103ae037f3258)
2003-10-27 06:51:39 +00:00
Richard Sharpe
15b14fc857 Put in a work-around for ENOTSUP not being defined on OpenBSD.
(This used to be commit ca3d98d08bfe2c5c8a0f1a0d17160800f85d84b7)
2003-10-25 04:13:32 +00:00
Richard Sharpe
966a448f93 Apply these patches as well ... not sure if they all build. They don't on
FreeBSD 4.3. They might on Linux.
(This used to be commit 1f115c95d635377a36c0a3a1f56b4b8def04fd7e)
2003-10-24 20:24:05 +00:00
Richard Sharpe
b0ead3a03d Apply latest of Derrell Lippman's changes to libsmbclient.
(This used to be commit 84e620e5ba65c040df1c0ebdcf39fa5648dd37d9)
2003-10-24 18:58:41 +00:00
Richard Sharpe
f3ea6329ba Fix one other place VA_COPY is defined ... should fix NetBSD build.
(This used to be commit fb69597629bad305f227b5bab62e0f170d3c164c)
2003-10-24 17:58:30 +00:00
Richard Sharpe
2f84a990bc Commit Derrell's changes to libsmbclient plus a small change to configure.in
to see if SGI and other platforms will build.
(This used to be commit cf9311044c372695592db1b95b814b0870b8cf29)
2003-10-24 17:01:19 +00:00
Richard Sharpe
d0833280da Some spelling mistakes in aclocal.m4 and the va_copy fixups in configure.in
and lib/snprintf. Check for va_copy first, and then look for __va_copy.
(This used to be commit 8b592740b6294555c461d7eee003e2bd5f4352a4)
2003-10-24 16:08:03 +00:00
Jim McDonough
debbecb23c Add shutdown abort try over initshutdown pipe first, then fall back to
winreg pipe if it doesn't work.  Fixes bug #534.

I will go back and add the same logic for the shutdown itself, even though
that works so far against win2k (haven't tested all win clients).
(This used to be commit e660b04e8f2446bb8a6590e9afcb5ab49f90a701)
2003-10-24 14:03:18 +00:00
Jim McDonough
3d8e3f314b Add initshutdown pipe commands to rpcclient. Second part of fix to bug
#534
(This used to be commit 4e86243ea1d4bbe96720caaaf02300f5e15bee5a)
2003-10-24 13:49:29 +00:00
Jim McDonough
d2523233ea New files for support of initshutdown pipe. Win2k doesn't respond properly
to all requests on the winreg pipe, so we need to handle this new pipe.

First part of fix for bug #534
(This used to be commit 0e10a05dff6828630bdaa9c350e19eec8621e776)
2003-10-24 13:38:16 +00:00
cvs2svn Import User
6440c4b34d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit e569418861a867437cd5e2cce87ad82e752da3fb) 2003-10-24 13:38:14 +00:00
Jim McDonough
6258550534 New files for support of initshutdown pipe. Win2k doesn't respond properly
to all requests on the winreg pipe, so we need to handle this new pipe.

First part of fix for bug #534
(This used to be commit 532fab74c12d8c55872c2bad2abead2647f919d7)
2003-10-24 13:38:13 +00:00
Richard Sharpe
261c0028dc Check for va_copy before you check for __va_copy, since va_copy is the
actual standard, and __va_copy was the proposed standard.
(This used to be commit 4ab7947e601e61cacd7ff541ee881850d9808387)
2003-10-24 05:47:39 +00:00
Tim Potter
11bbf14d58 Add some debugs in the error paths for tdb_brlock() to help track down
a locking problem on HPUX.
(This used to be commit 2d03d81f753fd819086d24a92eec5503f70246a0)
2003-10-24 05:44:19 +00:00
Jeremy Allison
7967eeb659 Andrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy.
(This used to be commit 2d09d8c9d973f5f414d31f749db12328ff315de7)
2003-10-24 01:19:23 +00:00
Jeremy Allison
ab8f9387b7 Andrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy.
(This used to be commit 46e66ee950eee035ad008c189cd2378f734af605)
2003-10-24 01:18:56 +00:00
Volker Lendecke
a36be30e08 Merge from 3_0:
After a phonecall with jra finally commit this.

This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.

I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.

Volker
(This used to be commit 8a75e2dfb6ee9099e7f9a970c522e71ab144d919)
2003-10-23 16:51:08 +00:00
Volker Lendecke
4f62277d89 After a phonecall with jra finally commit this.
This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.

I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.

Volker
(This used to be commit 556c62f93535c606122b22e7e843d9da9a1cd438)
2003-10-23 16:49:46 +00:00
Jim McDonough
2a09fe6cb4 Fix bug 451. Stop net -P from prompting for machine account password.
Based on work by Ken Cross (kcross@nssolutions.com).
(This used to be commit 32aa749bf1328e43af629ade30b3fdc11dd5e3ec)
2003-10-23 14:33:21 +00:00
Jim McDonough
c3125b6e2f Fix bug 451. Stop net -P from prompting for machine account password.
Based on work by Ken Cross (kcross@nssolutions.com).
(This used to be commit 8ef7ac22ef1a60dca0a2d01dc6ff4ba14bc1549a)
2003-10-23 14:33:19 +00:00
Jim McDonough
8e1dfc52b9 Volker's fix for bug #668. Change the \n after the password prompt to go
to tty instead of stdout.
(This used to be commit fb503bb418fcbee20d2218650904b26b512106ed)
2003-10-23 13:47:21 +00:00
Jim McDonough
a804eee9ec Volker's fix for bug #668. Change the \n after the password prompt to go
to tty instead of stdout.
(This used to be commit 3cec478b82359c527065c3a8d44daae96b7ac57e)
2003-10-23 13:47:17 +00:00
Volker Lendecke
49da8712d0 Merge from 3_0:
According to Ethereal we have a 32-Bit quantity here. And with SSVAL valgrind
reports an unitialized read which is obviously correct. And I hate valgrind
errors ;-)

Volker
(This used to be commit 73fc6da6cf2b52f65c3dbfb7705899e6cbea447a)
2003-10-23 13:46:32 +00:00
Volker Lendecke
e78cf62248 According to Ethereal we have a 32-Bit quantity here. And with SSVAL valgrind
reports an unitialized read which is obviously correct. And I hate valgrind
errors ;-)

Volker
(This used to be commit e5dbf2441c2ce7e7cb62f2538786e38bb8c8bdd9)
2003-10-23 13:45:48 +00:00
Richard Sharpe
0604336c3c Apply the changes to libsmbclient that derrell has contributed. Fix some
of the problems with this.

From: Derrell.Lipman@unwireduniverse.com
(This used to be commit 8e3d2708c5e5a9968aeb9a6fe6c828aa8a5b22a9)
2003-10-23 06:35:45 +00:00
Jeremy Allison
bb0598faf5 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-10-22 23:38:20 +00:00
Jeremy Allison
2710c35e54 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit 5c050a735f86927c7ef2a98b6f3a56abe39e4674)
2003-10-22 23:38:18 +00:00