summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2007-12-04Fix crash bug with vl's new trans handling in old transsJeremy Allison1-5/+6
calls. Make this look like the (working) transs2 handling (replace inbuf, not write to outbuf - outbuf isn't allocated yet so you get a null deref). Jeremy. (This used to be commit f04e37a630f8e7538d670d34db4ea7fc7c0b50a3)
2007-12-03Remove unused wpstring and macros. Stop using pstrcpy in smbd/*.cJeremy Allison1-26/+34
Jeremy. (This used to be commit e72bce5b62fb0a9d0ff4a3d76490219994f303cf)
2007-12-02Bump up debug levelVolker Lendecke1-2/+3
Fix bug 5115 (This used to be commit d3c839c22edeca2de68574a8f5dd328080577f3a)
2007-12-01In nttransact_create, we also need to check for delete readonlyVolker Lendecke1-1/+2
(This used to be commit f4cc9cab518e97c1049aaad7516aba212ae15c95)
2007-11-29Remove PSTRING_LEN from smbd/ nmbd/.Jeremy Allison1-3/+3
Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy. (This used to be commit cc257b71d13daa47e6f2315d0f07a60eb4aaeca6)
2007-11-29Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison1-1/+1
Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
2007-11-26Fix bug 5055Volker Lendecke2-2/+2
(This used to be commit 8bcd2df841bae63e7d58c35d4728b7d853471697)
2007-11-23smbd: close_stat() should be staticStefan Metzmacher1-1/+1
metze (This used to be commit e186b60afacfb609968b581a6d32757e1885a319)
2007-11-20Paranoia check that space_remaining never goes -ve.Jeremy Allison1-2/+10
Jeremy. (This used to be commit 76f9c0b2dccffbff7cbf98aa63f50b48ad7cb9cb)
2007-11-19Always check return from push_ascii.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 9c3d10521e691169cfbb8b728f123911c3c970ae)
2007-11-16Ensure we use PATH_MAX for symlinks.Jeremy Allison1-2/+2
Jeremy. (This used to be commit a90ef69350c5efcf8dcf95d4853cbe3c662d1ba3)
2007-11-16Match the 3.0.27a version of this function.Jeremy Allison1-14/+4
Jeremy. (This used to be commit 629406cbe77a5d56a258ac414ab47f3e89183e52)
2007-11-15Add MAX_DNS_NAME_LENGTH, remove more pstrings.Jeremy Allison1-3/+3
Jeremy. (This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
2007-11-16Fix an implicit cast warning.Michael Adam1-1/+1
Michael (This used to be commit 4ab3b23a630e822e3fdf1ab4d08330625b0e4fb6)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-1/+4
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-13Fix potential orphaned open files.Michael Adam1-2/+4
Calling can_access_file could lead to orphaned open files when SMB_VFS_GET_NT_ACL returned ENOSYS (not implemented). Michael (This used to be commit f4f700cf0c1657c36e801fab20fe7b1a4efcb714)
2007-11-13Remove last pstring from smbd/*.cJeremy Allison4-240/+310
Jeremy. (This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
2007-11-13Make [f]get_nt_acl return NTSTATUSVolker Lendecke4-31/+33
(This used to be commit dcbe1bf942d017a3cd5084c6ef605a13912f795b)
2007-11-12More pstring removal from smbd/*.cJeremy Allison1-11/+17
Jeremy. (This used to be commit 01663c2312467ceebeb2e2fb1aa432ad96c626e5)
2007-11-12Remove pstrings from lanman.cJeremy Allison1-54/+148
Jeremy. (This used to be commit 7bfd25c75602e25da73710261a54da8e0feea133)
2007-11-12Remove all pstrings from smbd/chgpasswd.c.Jeremy Allison1-67/+90
Jeremy. (This used to be commit eaf14c701b08e9eff5b94bf57af68cb29142d7fc)
2007-11-12Fix bug #5073. Allow "delete readonly = yes" to correctlyJeremy Allison1-1/+2
override deletion of a file. Fix from David Shaw <dshaw@jabberwocky.com> Jeremy. (This used to be commit 5d1d650d192d4782421b5c3c2be1b632d4318279)
2007-11-11Three more pstring removals.Jeremy Allison3-8/+17
Jeremy. (This used to be commit c15819b75751a1e15cfed2ef94dae10ee72d769c)
2007-11-11Cosmetic fixVolker Lendecke1-3/+5
Do directory vs file open before entering open_file_stat (This used to be commit cd62122916defbfb57468c3b82a60b766fc4652e)
2007-11-10Always define PATH_MAX. Makes code simpler (removesJeremy Allison3-37/+41
a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-10Remove last pstring from sesssetup.cJeremy Allison1-19/+21
Jeremy. (This used to be commit 9ed12bfc48fe7f9b1863a9dd88e881974083053c)
2007-11-10Fix the build when realpath doesn't take nullJeremy Allison1-1/+1
as a last arg. Jeremy. (This used to be commit 63125225383f512f43002b9a92569d4b8f1b63bd)
2007-11-10Remove pstring from service.c.Jeremy Allison1-71/+109
Jeremy. (This used to be commit cdd9e5cc8366cf0be4dc31f793fc0e5be6f63c3e)
2007-11-09Remove more static fstring/pstrings. Fix socket optionJeremy Allison1-4/+2
set on wrong fd (-1). Jeremy. (This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327)
2007-11-09ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)Stefan Metzmacher1-13/+19
lib/messages_local.c rpc_client/ndr.c smbd/notify_internal.c utils/net_rpc_registry.c metze (This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
2007-11-09prepare changes in ndr codeStefan Metzmacher1-3/+2
metze (This used to be commit 9ba00e7c167fb871a3d9acbd9fc5ce4e935d92c2)
2007-11-09Fix some warningsVolker Lendecke1-1/+1
(This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298)
2007-11-09Remove the silly "user_socket_options" global variableVolker Lendecke1-6/+8
This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-07Constrain "min receivefile size" to max of BUFFER_SIZEJeremy Allison1-2/+20
(128k). Add debug error messages so we can see why writeX large is denied. Ensure we don't allow recvfile writes on IPC$. Jeremy. (This used to be commit 6bf053a6a17749a3bc73c8cc5fd490aa5f93b763)
2007-11-07Try to fix the build on irix.Michael Adam1-2/+2
There were two callers of set_smb_read_error() in irix_oplocks.c not converted to the new prototype. Michael (This used to be commit e398a8d7b60127001d309c2fd0b1f13337f9b46d)
2007-11-06Move some access check functions that are not posix-acl specificMichael Adam2-212/+239
to a new source file of their own. Michael (This used to be commit 9dd18bb534bca6b5de6cad9580b48681b36c0832)
2007-11-06Don't repeat fast-pathing...Michael Adam1-1/+1
Michael (This used to be commit c61b4222d30288add216fac4da3cfaa537f5cd01)
2007-11-06This is a proposed patch for Bug #5023.Michael Adam1-300/+70
The three can_* access check functions in smbd/posix_acls.c that are used in smbd/open.c and smbd/nttrans.c explicitly called check_posix_acl_group_access() This lead to errors with nfsv4 acls (ZFS and GPFS). This changes the can_* functions to get the nt_acl via VFS layer and call se_access_check on that. It also removes check_posix_acl_group_access() which has no more callers. NOTE: The can_* functions should really not be in smbd/posix_acls.c but in a separate file (I propose smbd/access.c). Michael (This used to be commit 6f961a23de745aba5dcd4585b731e651b8cbeef4)
2007-11-06Add a const.Michael Adam1-1/+1
Michael (This used to be commit 7b582af2107bed3b864bb408b5c9bcce4b8e4c72)
2007-11-05Add two const's.Michael Adam1-2/+2
Michael (This used to be commit bf23c4ddff617dd3cd1e2d5cedb1b5c023356dc3)
2007-11-05Remove the horror that was the global smb_rw_error.Jeremy Allison3-24/+42
Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy. (This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-05Fix a debug messageVolker Lendecke1-1/+1
(This used to be commit a86849e4f9512b680f26010c297cec14251dafdd)
2007-11-05Make load_registry_service return the share numberVolker Lendecke1-1/+0
(This used to be commit 934964c90f39d588d2399f10e3738ab1b4e01290)
2007-11-04Forgot arg type.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 46f3b04ddea4c63c6b37c7038d4bbd2ee1c9ca0c)
2007-11-04Don't believe len returned from read_smb_length_return_keepalive(),Jeremy Allison1-1/+1
it may be a UNIX large writeX (which wraps len in that case). Stevef this should fix your 128k write bug. Jeremy. (This used to be commit de2ebffa3c99ed28a3868fd956ef45629ca855b6)
2007-11-03Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison6-11/+17
I have a plan for dealing with the remaining..... Watch this space. Jeremy. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03I can't get away without a 'length' arg. :-).Jeremy Allison6-9/+15
Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
2007-11-03Stop get_peer_addr() and client_addr() from using globalJeremy Allison6-8/+19
statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
2007-11-03Remove the smb_read_error global variable and replaceJeremy Allison5-38/+21
it with accessor functions. "One global or pstring a day...." :-). Jeremy. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-02Change the client library to write directly out ofJeremy Allison1-5/+10
the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy. (This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)