1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

5383 Commits

Author SHA1 Message Date
Andrew Tridgell
410ad56594 merge from 2_2
(This used to be commit 5e9a2084bfa555295f60485fc83f9bb9245f3fd4)
2001-04-19 13:47:12 +00:00
Jean-François Micouleau
6e4b008829 a missing string conversion.
J.F.
(This used to be commit 9513eb87c2d113fe27bcea2add05226495c33cb8)
2001-04-18 17:57:53 +00:00
Andrew Tridgell
3b4d7082cb new files for head
(This used to be commit c0d4a1f5dd34e49843c879dd88fc78c7dffd9269)
2001-04-18 16:42:07 +00:00
Andrew Tridgell
9ce5a03ccb merge from 2.2
(This used to be commit f52a5014ee325f9d91f266f88eac51b6136a75b9)
2001-04-18 16:41:04 +00:00
Jeremy Allison
6f78636a56 Removed mktemp from HEAD - same as done in 2.2.
Jeremy.
(This used to be commit 121b59669fbcd1aaedb08011ff36169fc6561c55)
2001-04-18 05:12:46 +00:00
Jeremy Allison
a40fe7b47d patch from Steve Langasek <vorlon@netexpress.net> to make sure we
don't use pam_setcred() if we haven't called pam_authenticate()
Merge from 2.2
Jeremy.
(This used to be commit 89589895e3adce75ecd6205547392326cf291543)
2001-04-18 04:34:42 +00:00
Jeremy Allison
0766f84a40 Merge of changes from 2.2.
Jeremy.
(This used to be commit df912162bbe93611c80defe830641f580687edbb)
2001-04-18 04:33:24 +00:00
Jeremy Allison
a5bd9ef712 Rememver to use VFS at all times... even in new user_can_read_file code :-).
Jeremy.
(This used to be commit 0d10113d01d6d15f470359259a76e4f107a06c73)
2001-04-18 02:27:23 +00:00
Jeremy Allison
82afede9fa Merged Andrew's wfw fix (2).
Jeremy.
(This used to be commit a4fb755a48d27f21bd0a5d9e9d1227a08c13bdff)
2001-04-17 07:09:42 +00:00
Jeremy Allison
8a1c2e0298 AIX ACLs donated by IBM.
Merge Andrew's fnmatch fix for WfW.
Jeremy.
(This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
2001-04-17 05:41:07 +00:00
Andrew Tridgell
4355098a75 hide unreadable patch from idra
(This used to be commit 7b6cfe243002a92f5dfb52413e9b3550c61cecfb)
2001-04-16 15:16:31 +00:00
Jeremy Allison
8c0a1c61cc Added --with-codepagedir as RedHat 6.2 and 7.x place them differently.
Jeremy.
(This used to be commit 1cfc542685f3ad6c16e922ca35043a1a9ce57f8e)
2001-04-16 07:10:55 +00:00
Tim Potter
bda419be61 Grr - fixed compile error in smbwrapper stuff.
(This used to be commit 11a7c5e3d61348dc8c5dfdc782a95974a1547e4d)
2001-04-16 02:42:10 +00:00
Tim Potter
af08cd21eb Getting medieval with compiler warnings as Jeremy puts it.
(This used to be commit d05c3cf0f47a3c863adbed7ad4ab8f3248cd072d)
2001-04-16 02:35:35 +00:00
Jeremy Allison
71ae6a09cd Finally got the semantics right (hurrah!).
Jeremy.
(This used to be commit 362574c5a32005d4247c7ac75a5aa9e35e894db0)
2001-04-16 00:34:03 +00:00
Jeremy Allison
d5b74f7130 Correct fix for open readonly with truncate.
Jeremy.
(This used to be commit 6706e258e17c3d69d617b95feb3407124f50852d)
2001-04-16 00:02:29 +00:00
Jeremy Allison
18f3f5ff92 Fixed potential bug in "become_guest" pointed out by elrond. Get_Pwnam()
returns a pointer to changable storage so ensure we save the details and
don't use the pointer directly.
Jeremy.
(This used to be commit d9fdaae54ee3a267aebd02ff6058a98aefc084c2)
2001-04-15 23:36:05 +00:00
Jeremy Allison
06a50f5184 Patch from "Christoph Zwerschke" <zwerschke@zuv.uni-heidelberg.de> to
map usernames before calling password change.
Jeremy.
(This used to be commit ce2a236dc61d819e083b32556a2d9f827944b91c)
2001-04-15 22:29:36 +00:00
Jeremy Allison
78ac23f7e0 Added Darwin guess.
lib/util_str.c: Excellent patch from  Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>
to speed up trim_string handling !
Jeremy.
(This used to be commit 4bb63ba615c735a298a6cbda2c87242695104978)
2001-04-15 22:21:04 +00:00
Jeremy Allison
452f60e030 Fix from "Darrin B. Jewell" <jewell@bdi.com> to allow anything other than
nmbd to talk to nmbd if it's a WINS server.
Jeremy.
(This used to be commit 0e8147aecaf6941c77fd05b4b705ca31c1ec5760)
2001-04-15 21:22:18 +00:00
Jeremy Allison
c9f2c1fc5e Fix from Tony Butt - shouldn't set got_pass for -c option.
Jeremy.
(This used to be commit 83aa76205858a0d0a0fa2a22648e727b796908f2)
2001-04-15 20:40:08 +00:00
Jeremy Allison
e7a6cb234a Removed one samba-bugs ref. from source.
Jeremy.
(This used to be commit d40ee1707d1d3cf04358bca7fad16ebc15bd4845)
2001-04-14 21:26:45 +00:00
Jeremy Allison
2df39394fe This little piece of insanity is inspired by the
fact that an NT client can open a file for O_RDONLY,
but set the create disposition to FILE_EXISTS_TRUNCATE.
If the client *can* write to the file, then it expects to
truncate the file, even though it is opening for readonly.
Quicken uses this stupid trick in backup file creation...
Thanks *greatly* to "David W. Chapman Jr." <dwcjr@inethouston.net>
for helping track this one down. It didn't bite us in 2.0.x
as we always opened files read-write in that release.
Jeremy.
(This used to be commit 5baef56831f9bc4fa10a851abd5f9305b974fb3b)
2001-04-14 20:47:30 +00:00
Jeremy Allison
ed449b8ca7 Added POSIX_ACL support for *BSD. Patch from jedgar@fxp.org. Changed
a bit to use AC_TRY_LINK to ensure functions are available for link
instead of AC_TRY_COMPILE.
Jeremy.
(This used to be commit c23628746342b6afa28cb34b0b4eaa61189ad390)
2001-04-14 19:46:28 +00:00
John Terpstra
548ca26bd5 Patch from Mandrakesoft to ensure we close all files.
(This used to be commit 8051406588987005f621cb095067d3628638d250)
2001-04-14 18:39:32 +00:00
Jeremy Allison
a8410f20c1 Fix for True64 treating readonly as a reserved word !
Jeremy.
(This used to be commit d6889b1954bd863fd04cf43fb25f178b1d1ab67f)
2001-04-14 00:41:15 +00:00
Jeremy Allison
53850c51ca configure:
configure.in:
include/config.h.in:
include/profile.h:
smbd/vfs-wrap.c:
smbd/vfs.c:
Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway).
smbd/dosmode.c:
smbd/files.c:
printing/printfsp.c:
smbd/close.c:
smbd/open.c:
Fixed "dos filemode" correctly so there are no race conditions. Forces test
of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls
standard close function that preserves POSIX locks due to POSIX-me-harder
braindamage. :-). Andrew please review this code.
Also - in removing the tmpdir param in smbrun an extra NULL parameter
was missed in each print_run_command() call (which is a varargs fn.).
Now fixed.
Jeremy.
(This used to be commit 32397e5bc6d995ce7ca37c82d6aedc1e5b1b6fbd)
2001-04-14 00:19:12 +00:00
Jeremy Allison
9444e9d9f3 Michael Davidson <md@sco.COM> pointed out that acl_get_qualifier can potentially
return a malloced area so added sys_acl_free_qualifier() calls to all supported
ACL interfaces to code with this (only Linux needs actual free call).
Jeremy.
(This used to be commit 5870e6019b82d2088b99acdc0f84e9e4847a1fa5)
2001-04-13 21:11:57 +00:00
Jeremy Allison
819482c071 Fixed potential file descriptor leak with MS-Access fix.
Jeremy.
(This used to be commit 192887fe72157a141b8df1977085f479e5204782)
2001-04-13 20:49:11 +00:00
Jeremy Allison
3c2c047e82 Added fix from "Eric Boehm" <boehm@nortelnetworks.com> to try and set hard
limit before setting soft limit.
Jeremy.
(This used to be commit a1eb2752a8bee9cc7d92c664c3de84e02620933d)
2001-04-13 19:33:26 +00:00
Jeremy Allison
2ef68c7e92 Merge of Andrew's changes in 2.2.
Jeremy.
(This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-13 19:12:06 +00:00
Shirish Kalele
14748b0bf5 Adding the "Using Samba" book to the packaging in HEAD.
(This used to be commit 4f06373bc450b27692619ae877d29767ad160297)
2001-04-13 18:18:25 +00:00
John Terpstra
abd4296ebf Updated with Andrew Bartlett patch.
(This used to be commit 02e84267f74b26bdf7f76c0fc9dbaecbc8574d58)
2001-04-13 04:27:50 +00:00
John Terpstra
90adf620ee Updated Major/Minor version to 4.50 - see notes.
(This used to be commit bdb68cf37e9b512e9f72f1cf20b7ca265888319e)
2001-04-13 02:51:58 +00:00
Jeremy Allison
50e78a9ac8 As Andrew suggested, make smbrun return a fd for a deleted file which can then
be read.
Jeremy.
(This used to be commit e7d59d6de89a5fdd201e4b5c6072dab08b1519db)
2001-04-13 00:37:00 +00:00
Gerald Carter
d85924a028 forgot one thing
(This used to be commit a17f2471571596e97b212ff9de1c8b45dac12eb6)
2001-04-12 22:15:57 +00:00
Gerald Carter
c032fb5121 still working on it
(This used to be commit ff7c5be88a05c0f1858fedb966ccfc038299bbc9)
2001-04-12 22:14:20 +00:00
Jeremy Allison
874356646a Can't use space in random string used for exec.
Jeremy.
(This used to be commit 8ab1d5663e6b25bc101cd388ef6c312ddb88b988)
2001-04-12 07:20:15 +00:00
Jeremy Allison
09a5daf032 Changed lp_add/delete/enum scripts to use lockdir if spool dir doesn't
exist for printer. Rather than using pid for suffix, use a 16 byte random
string. Created generate_random_str() function in genrand.c. Still needs
more testing but this is the way to go.
Jeremy.
(This used to be commit 71a330987f990007beb16f00fc468107361b5e9d)
2001-04-12 07:00:08 +00:00
Tim Potter
3e24c65101 Added a caching system to smbsh. Previously access to workgroup or server
directories under /smb generated net share enum or net server enum calls.
For large networks this could result in bad performance.  We now cache these
results and only call net * enums after the cache timeout has exceeded.
(This used to be commit 1e38eef54d729aeb7fe905b344cf1480c686a348)
2001-04-12 05:53:07 +00:00
Jeremy Allison
e5691d44a8 Merged John's changes.
Jeremy.
(This used to be commit add847778bf458238bf2a1b14ab71b8cdfd7aec0)
2001-04-12 05:32:27 +00:00
Gerald Carter
71ef4e0183 fix broken links in SWAT due to upper case anchors in the generated
HTML man pages.  Spotted by Herb.
(This used to be commit be45c82c3ab3b626cd761f2cec3b160df2b7fcac)
2001-04-12 05:24:57 +00:00
Jeremy Allison
6578fd8742 To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
(This used to be commit 9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2)
2001-04-11 23:19:08 +00:00
Jeremy Allison
0ca9f5c023 Fix for core dump in security = share code with new share security db.
Jeremy.
(This used to be commit 20b13bafdff2fd7be9219ed164e7fe91b597298d)
2001-04-11 21:19:25 +00:00
Shirish Kalele
362e4bb21a Adding Solaris packaging files to HEAD.
(This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)
2001-04-11 02:28:38 +00:00
Jeremy Allison
91e97f9091 Changed the order of -kPIC and -kpic.
Added patch from Michael Davidson <md@sco.COM> for Solaris/Unixware ACLS.
Jeremy.
(This used to be commit 144a2906810e8d4414d627835eb80f60bd1d88a4)
2001-04-11 02:02:45 +00:00
Tim Potter
b541683e44 Fixed some compiler warnings.
(This used to be commit cda0f211b0dd41ae72ef3d65b9476c11c6f72de3)
2001-04-11 01:50:12 +00:00
Jeremy Allison
3a38f122d9 Added SMB_ prefix to enums that clash with Solaris ACL definitions.
Jeremy.
(This used to be commit 493d2c316a9e80de0239ef3a6f0b3f4ec9ac6e13)
2001-04-11 01:34:37 +00:00
John Terpstra
abd96b890b Updating pampass from Samba-2.2 code tree. ===> JHT
(This used to be commit 88b6043b4e26c2771e0c444376b7017f5048baf8)
2001-04-11 01:29:42 +00:00
Jeremy Allison
9e73a36193 Restrict dfs add and dfs remote to root at Shirish's advice.
Jeremy.
(This used to be commit 9dd77c4fb1282d23cfbfd9d0ed790be62534e201)
2001-04-11 00:05:23 +00:00