summaryrefslogtreecommitdiffstats
path: root/source/smbd/open.c
Commit message (Collapse)AuthorAgeFilesLines
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-2/+1
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-392/+553
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r17259: merging some changes that will be in a future 3.0.23b releaseGerald Carter2006-07-261-8/+9
|
* r17161: sync files from SAMBA_3_0_23 branchGerald Carter2006-07-201-90/+70
|
* r17143: svn merge -r17091:17138 ../SAMBA_3_0_23/Gerald Carter2006-07-191-77/+111
|
* r16472: final pass for 3.0.23rc3 I think. Current with SAMBA_3_0 r16471Gerald Carter2006-06-221-2/+2
|
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-151-3/+0
|
* r16104: Set version to 3.0.23rc2Gerald Carter2006-06-081-18/+27
| | | | | Bring release tree up to current 3.0 tree (svn merge -r15845:16103 $SVNURL/branches/SAMBA_3_0)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-1/+1
|
* r15144: final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)Gerald Carter2006-04-201-40/+60
|
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2006-04-041-2/+2
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r14883: add 'smbd:sharedelay' option, so that we can speed up BASE-DENY2 in ↵Stefan Metzmacher2006-04-031-1/+8
| | | | | | | | make test as done in samba4 metze
* r14602: Fix another logic bug in new oplock handling. JustJeremy Allison2006-03-211-12/+17
| | | | | | | | | | | | | | because lck->num_share_modes != 0 doesn't mean that there *are* other valid share modes. They may be all marked "UNUSED" or be deferred open entries. In that case don't downgrade the granted oplock to level2 needlessly - a client can have an exclusive oplock in this case. The original code handled this correctly in the lck->num_share_modes == 0 case but not in the case where there were no valid share modes but lck->num_share_modes != 0. I'll clean up my Samba4 torture tester for this and commit it tomorrow. Jeremy.
* r14596: Fix a logic bug with multiple oplock contention.Jeremy Allison2006-03-201-18/+33
| | | | | | | | | | | | | The sad thing is the core of this bug fix is just removing a paranoia "exit_server" call, as the rest of the logic was already correct :-). Lots of comments to explain the logic added. I will look at adding tests to exercise this, might be possible. Jeremy.
* r13694: Committing patch from Aleksey Fedoseev <aleksey at fedoseev dot net> ↵Volker Lendecke2006-02-261-1/+1
| | | | | | | | to NULL out a pointer after talloc_destroy(). Volker
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-12/+12
| | | | macro which sets the freed pointer to NULL.
* r13559: Fix bug #3522 reported by Sandeep Tamhankar ↵Jeremy Allison2006-02-181-6/+0
| | | | | | | <sandman@electric-cloud.com>. mkdir foo returns the wrong error message when file foo exists. Jeremy.
* r13316: Let the carnage begin....Gerald Carter2006-02-031-9/+1
| | | | Sync with trunk as off r13315
* r13314: This code has been causing problems since 1.9.x I think.Jeremy Allison2006-02-031-19/+0
| | | | | | | Remove check_for_pipe() - Volker was completely correct. If it gets re-added it will be in a old open call path, not in the generic code path. Jeremy.
* r13299: From testing W2K3 and W2K the delete on close bit seems to be alwaysJeremy Allison2006-02-031-3/+3
| | | | | | | | honored (ie. the file gets deleted) for derectories when set at open time - even though it doesn't show in the qfileinfo call. This is not true of files.... (if anyone from the EU is listening, it's stuff like this that makes CIFS non-documentable :-). Jeremy.
* r13293: Rather a big patch I'm afraid, but this should fix bug #3347Jeremy Allison2006-02-021-0/+2
| | | | | | | | by saving the UNIX token used to set a delete on close flag, and using it when doing the delete. libsmbsharemodes.so still needs updating to cope with this change. Samba4 torture tests to follow. Jeremy.
* r13274: Fix for bug #3467. Not a show stopper.Jeremy Allison2006-02-011-24/+22
| | | | | | jason qian <jason@infrant.com> was a *fantastic* help in tracking this down. Jeremy.
* r12877: Stop passing structs around in smb messages, insteadJeremy Allison2006-01-121-6/+16
| | | | | | | | | always linearize into little-endian. Should fix all Solaris issues with this, plus provide a cleaner base moving forward for cluster-aware Samba where smbd's can communicate across different compilers/architectures (eventually these message will have to go cross-machine). Jeremy.
* r12735: After talking to Tridge and Jeremy... This needs to be made more genericVolker Lendecke2006-01-061-14/+0
| | | | | | before it goes in. Volker
* r12721: GPFS 2.4 on Linux will contain some windows semantics, ie share ↵Volker Lendecke2006-01-051-0/+14
| | | | | | | | | | | | | | | | modes and oplocks across the cluster. Adapt Samba to it. The gpfs API is called via libgpfs.so. This code is written with dlopen(), so that you can compile on a system with gpfs installed and later on run on systems without gpfs available. So to actually make Samba call gpfs share mode calls you need to compile with gpfs.h and libgpfs.so around and set 'gpfs share = yes' on the shares you export from GPFS. Volker
* r12460: Fixes for bug 3349Volker Lendecke2005-12-241-2/+6
|
* r12213: Final fix for #3303 - send rename messages to smbd'sJeremy Allison2005-12-131-0/+47
| | | | | | | | that have open file handles to allow them to correctly implement delete on close. There is a further correctness fix I'm intending to add to this to cope with different share paths, but not right now... Jeremy.
* r12203: Add the share path into the sharemode db. This involvesJeremy Allison2005-12-121-5/+10
| | | | | | | | | | revving the minor version number for libsmbsharemodes (we now have a new _ex interface that takes the share path as well as the filename). Needed for #3303. Some code written by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes to locking/locking.c. The smbstatus output is a bit of a mess and needs overhauling... Jeremy.
* r11341: Put directory opens into the share mode db so weJeremy Allison2005-10-271-3/+34
| | | | | | | | can treat them similarly to file opens (delete on close, share mode violations etc.). This fixes bug #3216 I will up the default hash size on the locking db in a later commit as this means more entries. Jeremy.
* r10943: Unused variable. Bug #3160 from jason@ncac.gwu.eduJeremy Allison2005-10-121-3/+1
| | | | Jeremy.
* r10930: Fix erroneous debug spotted by Herb.Jeremy Allison2005-10-121-1/+1
| | | | Jeremy.
* r10744: Fix for the second incarnation of bug #3088, pushed by Alex MasterovJeremy Allison2005-10-051-16/+0
| | | | | | | | | | | | | <alex@infobit.ru>. A fcbopen specific part of the code was erroneously being called as part of the mainline open. Note, that this patch superceeds and replaces the fix that Volker added for this bug (which he added a Samba4 torture test for ) : "Fix a race condition in Samba 3. If two files are opened simultaneously with NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with two or more times NT_STATUS_OK as EEXIST is not correctly handled." Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-499/+380
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r10133: Fix bug #3044. open-exec is read-only.Jeremy Allison2005-09-091-1/+1
| | | | Jeremy.
* r9584: Fix a race condition in Samba 3. If two files are opened ↵Volker Lendecke2005-08-241-0/+9
| | | | | | | | | | | | | | | simultaneously with NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with two or more times NT_STATUS_OK as EEXIST is not correctly handled. Jeremy, please look closely at this. You can easily verify this by adding a smb_msleep(100) to the top of open_file_ntcreate and run the new samba4 torture test. It does also happen without the msleep, but not as reliably. Thanks, Volker
* r8492: open_mode_check does not use the parameter p_flags, so remove it.Volker Lendecke2005-07-151-3/+2
| | | | Volker
* r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison2005-07-081-779/+1127
| | | | | | | | | tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy.
* r7963: Add aio support to 3.0.Jeremy Allison2005-06-271-0/+4
| | | | Jeremy.
* r6673: Fix the write cache based on some VERY good detective workJeremy Allison2005-05-081-3/+0
| | | | | | from Ingo Kilian <ikilian@web.de>. You must do a make clean after updating this. Jeremy.
* r6344: Fix bug #2601 - it seems that DOS_OPEN_EXEC does mean readonly. NeededJeremy Allison2005-04-141-1/+1
| | | | | | for Win9x and OS/2 clients. More Samba4 tests against W2k3 will be needed to confirm this but in the meantime get it up and running. Jeremy.
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2005-04-061-3/+1
|
* r6200: Returned access should contain share mode as well as open mode.Jeremy Allison2005-04-041-1/+1
| | | | Jeremy.
* r6174: Fixup T2 open call - we were returning 2 bytes short.Jeremy Allison2005-04-021-17/+0
| | | | Jeremy.
* r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global ↵Jeremy Allison2005-04-011-69/+32
| | | | | | nastyness. Jeremy.
* r6152: Correctly check OpenX open modes.Jeremy Allison2005-03-311-13/+35
| | | | Jeremy.
* r5854: Fix coredump when OS/2 checks for long file name support (with .+,;=[].).Jim McDonough2005-03-171-7/+5
| | | | | | Bugzilla 2338. Thanks to Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
* r5848: Fix inherit owner to chown directories in a porable and secure way (from Jeremy Allison2005-03-171-37/+25
| | | | | just secure on Linux). Idea from tridge. Jeremy.
* r5792: Added new parameter "inherit owner". If set on a share, the created ↵Jeremy Allison2005-03-151-27/+125
| | | | | | | | | | | | | file/directory will be owned by the same uid as the containing directory. Doing this for directories in a race-free mannor has only been tested on Linux (it depends on being able to open a directory and then do a fchown on that file descriptor). If this functionality is not available then the code silently downgrades to not changing the ownership of a new directory. This new parameter (docs to follow) finally makes it possible to create "drop boxes" on Samba, which requires all files within a directory to be commonly owned. A HOWTO on how to use this will follow. Jeremy.
* r5630: This may be a mistake ... needs more cthon investigation.Jeremy Allison2005-03-021-0/+3
| | | | Jeremy.
* r5623: Horrible band-aid patch to fix Blue-Arc torture tester.Jeremy Allison2005-03-021-1/+7
| | | | | | I know this isn't right but will work until I can refactor the deny mode code with the Samba4 algorithm. Jeremy.