summaryrefslogtreecommitdiffstats
path: root/source/smbd/open.c
Commit message (Collapse)AuthorAgeFilesLines
* Correctly return access denied on share mode deny when we can't open theJeremy Allison2003-02-121-3/+19
| | | | | file. This is a regression that was damaged by other code. Jeremy.
* Ensure we only ever set fsp->conn in one place.Jeremy Allison2003-02-041-7/+0
| | | | Jeremy.
* Ensure Samba passes the open attribute truncate tests in smbtorture.Jeremy Allison2003-02-041-9/+12
| | | | Jeremy.
* Fix for interesting resource constraint condition. When all opens areJeremy Allison2003-01-301-1/+1
| | | | | | | | | | level 2 and a request for open with no oplock is received then the smbd should send *synchronous* break messages, not asynchronous, otherwise it spins very rapidly, releasing the lock, sending the 'break to none' messages and then re-acquiring the lock before any other process has a chance to get the lock and remove it's own oplock (at least on linux). Jeremy.
* Fix open problem with changing attributes on an existing file - basedJeremy Allison2003-01-081-7/+45
| | | | | on work by <steve@griffin.sio2.nl>. Jeremy.
* Remove unused variable.Tim Potter2003-01-071-1/+0
|
* Fix problem with "hide unreadable". stat file opens are baaack :-).Jeremy Allison2003-01-031-99/+45
| | | | Jeremy.
* Very curious. It turns out attribute matching on truncate only mattersJeremy Allison2002-11-191-2/+2
| | | | | | when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to truncate on open with current NONE -> SYSTEM | HIDDEN. Jeremy.
* Fix to correctly return NT_STATUS_DELETE_PENDING.Jeremy Allison2002-11-051-0/+1
| | | | Jeremy.
* First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.Jeremy Allison2002-10-231-1/+5
| | | | | | | This is not 100% the same as what SuSE shipped in their Samba, there is a crash bug fix, a race condition fix, and a few logic changes I'd like to discuss with Andreas. Added Andreas to (C) notices for posix_acls.c Jeremy.
* Ensure we open UNIX fifo's non-blocking like we used to do.Jeremy Allison2002-09-031-0/+11
| | | | Jeremy.
* Fix bug with stat mode open being done on read-only open withJeremy Allison2002-08-301-8/+10
| | | | | truncate. Jeremy.
* Correctly fail opens with mismatching SYSTEM or HIDDEN attributes if weJeremy Allison2002-08-301-0/+36
| | | | | are mapping system or hidden. Jeremy.
* Fix const warningAndrew Bartlett2002-07-081-1/+1
|
* Raise some debug levels.Andrew Bartlett2002-06-221-1/+1
| | | | Andrew Bartlett
* When doing a non-io open the stat failing is no cause for a debug zeroJeremy Allison2002-04-231-2/+6
| | | | | to be printed, it just means file not found. Jeremy.
* try to cope better with the take ownership operation for foreign SIDsAndrew Tridgell2002-04-201-2/+4
| | | | | what we do is map to the authenticated user when the sid is unmappable and dos filemodes are enabled
* Matched W2K *insane* open semantics....Jeremy Allison2002-03-261-0/+18
| | | | Jeremy.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-167/+164
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* Fix stupid typo !Jeremy Allison2002-03-211-2/+2
| | | | Jeremy.
* Remove the "stat open" code - make it inline. This should fix theJeremy Allison2002-03-201-74/+27
| | | | | | | | bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy.
* Added POSIX ACL layer into the vfs.Jeremy Allison2002-03-121-1/+1
| | | | Jeremy.
* Implemented default ACL patch (set inherit acls = true on a per share basis).Jeremy Allison2002-03-111-2/+12
| | | | | | Based on code donated by Olaf Frączyk <olaf@cbk.poznan.pl>. Further commit will change to sending via vfs interface. Jeremy.
* Fixed delete on close semantics - preparing for share mode rewrite.Jeremy Allison2002-03-071-0/+2
| | | | Jeremy.
* This is a nasty hack to fix "xcopy /o" from win2000 on a Samba shareAndrew Tridgell2002-02-261-13/+46
| | | | | | | | | | The hack passes the true ntcreate desired_access down to open_file_shared1() from the ntcreatex function. This is used to determine if share modes should be used in denying this open. This hack will become unnecessary when we redo open.c to use the proper NTCreateX semantics rather than trying to jam the ntcreate semantics into openX semantics.
* Merge of smbclient print crash bug fix from app head.Tim Potter2002-02-151-2/+4
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Fixed display of "remote downlevel document" in old print job submissionJeremy Allison2002-01-251-1/+1
| | | | | case. Jeremy.
* don't use O_NONBLOCK in open(). This was added erroneously for kernelAndrew Tridgell2002-01-171-4/+0
| | | | oplocks and really shouldn't be used
* Added the O_NOFOLLOW flag if follow symlinks is set off.Jeremy Allison2002-01-121-0/+6
| | | | Jeremy.
* Moved fchown_acl change to the point where we *really* know if weJeremy Allison2001-12-161-10/+10
| | | | | created the file or not. Jeremy.
* Spelling pedents strike again :-).Jeremy Allison2001-11-281-1/+1
| | | | Jeremy.
* Ensure the CAN_WRITE is checked and prevents O_CREAT and O_TRUNC fromJeremy Allison2001-11-281-2/+2
| | | | | | being set. Also prevent an open on a file on a readonly share from setting delete on close. Jeremy.
* Re-added "Share modes" meaning don't allow deny mode conflict. Due toJeremy Allison2001-11-281-2/+10
| | | | | user demand (don't talk to me about removing parameters.... :-). Jeremy.
* Fix for the logic bug wrt. existant oplocks. See long messageJeremy Allison2001-11-271-5/+2
| | | | | in samba-technical for explaination. Jeremy.
* nsswitch/winbindd_group.c nsswitch/winbindd_user.c: formatting fixups.Jeremy Allison2001-11-271-1/+1
| | | | | smbd/open.c: Fix "delete on close" for directories. Jeremy.
* Fixed delete on close bug. Added core dump code to winbindd.Jeremy Allison2001-11-231-1/+22
| | | | Jeremy.
* Move from timestamp to gen count file id's for finding oplocked filesJeremy Allison2001-10-201-7/+2
| | | | | in a tdb. Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* Change log message to 2 from zero when failing to create directory.Jeremy Allison2001-09-241-1/+1
| | | | | Stops spurious profile creation messages. Jeremy.
* move to SAFE_FREE()Simo Sorce2001-09-171-9/+8
|
* use variables _before_ freeing them!Simo Sorce2001-09-151-3/+2
| | | | thanks to Andreas Moroder for spotting these two.
* fixed formatting to make the code vaguely readable. It's still a dogsAndrew Tridgell2001-09-051-142/+143
| | | | breakfast, but at least you can follow the indents
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-4/+1
| | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night
* Missed '\' at eol...Jeremy Allison2001-08-221-1/+1
| | | | Jeremy.
* Tidyup fixes for fcntl spin problem.Jeremy Allison2001-08-221-3/+13
| | | | Jeremy.
* Fixed the (incorrect) paranioa fix I put in for the fcntl lock spin.Jeremy Allison2001-08-221-9/+35
| | | | | | Don't delete a share mode that failed to remove the oplock (doh!), just set the oplock entry to zero.... Jeremy.
* This is Jeremy pretending to be Volker, 'cos theVolker Lendecke2001-08-211-0/+10
| | | | | | | | | | | | | | | | | link from Seattle is having problems. I've added 3 things here to work on the fcntl spin problem. 1). Check *all* tdb return codes... :-). 2). If we're asking ourselves to break an oplock, and we can't find a fsp pointer that matches the entry, this is a *logic bug* and we should abort and panic so someone with gdb can pick up the pieces. 3). After we've broken an oplock, ensure that the entry itself has been removed, and if not remove it ourselves. This should not be neccessary in a correctly working environmen,t, but will provide an added layer of robustness in error situations. 4). I hate german keyboards :-) :-). Jeremy.
* We were making an assumption in the oplockJeremy Allison2001-07-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | break code path that was invalid (ie. we were assuming we could infer a non-levelII oplock when such an oplock was detected - this may no longer be valid once we've processed the break process dealing with the break will change the state of it anyway. This prevents the state where we get the following packet trace : client server NTcreate -> <- NTcreate resp NTcreate -> <- break to level II ok - broken -> <- break to none Thanks to Alan Romeril for providing the trace that allowed me to track this down. Jeremy.
* Fix race where wrong action (created or opened) could be returned.Jeremy Allison2001-07-051-0/+8
| | | | Jeremy.