summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up tmp file handling.Jeremy Allison2001-04-051-7/+2
| | | | Jeremy.
* I know we're supposed to be feature frozen, but I couldn't resist this... :-).Jeremy Allison2001-04-045-16/+502
| | | | | | | | I worked out and added the per-share get/set RPCs for security descriptors. Currently this code returns Everyone, full access on get and permission denied on set, but backending this with a tdb and checking it on tconX (to give full NT semantics for security on shares) is now an excersise for the reader... :-). Jeremy.
* Fix for broken RelientUNIX.Jeremy Allison2001-04-042-1/+11
| | | | Jeremy.
* Missed forms update - my CVS mistake.Jeremy Allison2001-04-031-21/+70
| | | | Jeremy.
* test commit for jeremyAndrew Tridgell2001-04-031-1/+1
|
* Sync up with new NT forms code.Jeremy Allison2001-04-032-20/+197
| | | | Jeremy.
* Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.Jeremy Allison2001-04-037-10/+332
| | | | Jeremy.
* IRIX ACLs from Herb.Jeremy Allison2001-04-022-0/+274
| | | | Jeremy.
* include/ntdomain.h:Jeremy Allison2001-04-025-76/+158
| | | | | | | | | rpc_server/srv_lsa_hnd.c: Remove back pointer from policy handle list as the pipe that opened the handle may have been closed. We were dereferencing into something that had been closed. rpc_parse/parse_spoolss.c: Sync up with Gerald's changes in 2.2. lib/replace.c: Don't do proto on setlinebuf as it differs between systems. Jeremy.
* Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>Jeremy Allison2001-04-011-112/+275
| | | | Jeremy
* configure configure.in include/config.h.in lib/replace.c: Added test and ↵Jeremy Allison2001-03-317-642/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | replacement for setlinebuf which apparantly doesn't exist on HPUX 11. include/byteorder.h: rpc_parse/parse_prs.c: Ding Dong the witch is dead ! :-). Ok, I'm happy 'cos I've finally deleted all the *HORRIBLE* DBG_RW_XXX and RW_XXX macros from include/byteorder.h. They were macros that included macros that had conditional macros included. No one understood them (they were the cause of most of the bigendian issue bugs). Finally, I went into parse_prs.c and inlined all of that stuff with regular function calls. They're understandable, they're easy to edit and they don't include macros ! JF - please look at the one comment I added (JF PLEASE CHECK). I have tested this partly with IRIX (a bigendian system) running with AS/U on a Solaris box in SGI's lab, and I've also confirmed these new changes work with W2K (vmware) but there may be the odd bug lurking. Herb, if you could re-checkout and test again with this code that would help. Extra. Fixed bug spotted by the sharp eyes of JF - big endian unicode packet would cause a early truncate of string parsing as we were checking for a char * 0, not a uint16 * 0. Jeremy.
* started converting some of the only-ascii code to use srvstr_*Andrew Tridgell2001-03-313-475/+494
| | | | | | | added srvstr_push_ascii() and srvstr_pull_ascii() as convenience routines to replace the current usage of strncpy() like fns for packet pull/push. We need to do this in *lots* of places in Samba in order to get our codepage handling right
* utils/torture.c: Added one more delete on close test.Jeremy Allison2001-03-302-3/+58
| | | | | | | | | | | | | smbd/notify_kernel.c: This code was wrong I believe. It was structured to only return a changenotify event on being called from timeout processing (t != 0). The kernel changenotify events should fire on *asynchronous* processing (EINTR return from select caused by the realtime signal delivery) with t == 0. Reported by Juergen Hasch (Hasch@t-online.de). ANDREW PLEASE CHECK THIS ! Currently the hash style changenotify is done on async processing as well as timeout processing. As this is expensive we may want to revisit doing this and maybe set it to fire only on timeout processing. Jeremy.
* Fixed extern ref typo for file generic perms. 2am coding strikes again :-).Jeremy Allison2001-03-301-1/+1
| | | | Jeremy.
* This is a big, rather ugly patch. Whilst investigating the files not truncatedJeremy Allison2001-03-309-194/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | when copying to a full disk problem, I discovered that we were not allowing the delete on close flag to be set properly, this led to other things, and after investigation of the proper delete on close semantics and their relationship to the file_share_delete flag I discovered there were some cases where we weren't doing the deny modes properly. And this after only 5 years working on them..... :-) :-). So here's the latest attempt. I realised the delete on close flag needs to be set across all smbds with a dev/ino pair open - in addition, the delete on close flag, allow share delete and delete access requested all need to be stored in the share mode tdb. The "delete_on_close" entry in the fsp struct is now redundant and should really be removed. This may also mean we can get rid of the "iterate_fsp" calls that I didn't like adding in the first place. Whilst doing this patch, I also discovered we needed to do the se_map_generic() call for file opens and POSIX ACL mapping, so I added that also. This code, although ugly, now passes the deny mode torture tests plus the delete on close tests I added. I do need to add one more multiple connection delete on close test to make sure I got the semantics exactly right, plus we should also (as Andrew suggested) move to random testing here. The good news is that NT should now correctly delete the file on disk full error when copying to a disk :-). Jeremy.
* Added one more test - just to make sure flag can be unset.Jeremy Allison2001-03-301-1/+43
| | | | Jeremy.
* Expanded delete on close test to 6 cases. I now understand the semantics ofJeremy Allison2001-03-301-2/+53
| | | | | | this and the FILE_SHARE_DELETE flag exactly. The bad news is it means our share mode handling is broken (again :-). Jeremy.
* Changed to using GENERIC_XX constants instead of hex values to makeJeremy Allison2001-03-301-9/+57
| | | | | delete test explicit. Jeremy.
* Added delete on close test that has allowed me to determine how w2kJeremy Allison2001-03-301-0/+147
| | | | | behaves in this situation. Jeremy.
* Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison2001-03-292-0/+42
| | | | Jeremy.
* Added cli_nt_create_full() as a way to get at all the ntcreate parameters.Jeremy Allison2001-03-292-6/+23
| | | | | Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full(). Jeremy.
* Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.Jeremy Allison2001-03-281-1/+1
| | | | Jeremy.
* Fixed typo bug spotted by Jim Vopni jimv@metrics.com. Caused no status toJeremy Allison2001-03-281-1/+1
| | | | | | be returned. Jeremy. CVS ----------------------------------------------------------------------
* rename of 16 new_smb_io functions to smb_io_* for consistency sakeGerald Carter2001-03-284-165/+165
| | | | (merge from 2.2)
* More memory leaks fixed courtesy of Insure ...Richard Sharpe2001-03-281-11/+44
|
* Changed usage message for query_groupmem and query_usergroups as they don'tTim Potter2001-03-281-2/+2
| | | | convert names to rids yet.
* Fixed the problem Gerald reported. Unfortunately we need to go back toJeremy Allison2001-03-281-194/+110
| | | | | | | | | | reporting imaginary "default" inheritable ACLs on directories, otherwise, when you add an entry and click on apply without noticing there's no default entry associated with it, it applies a null acl on the files within the directory (hey, that's what you told NT you wanted, right ! :-). Also ensure that minimum permissions for a directory are r-x for owner, not just r--. Jeremy.
* make protoGerald Carter2001-03-271-7/+7
|
* merge from 2.2.Gerald Carter2001-03-274-69/+69
|
* One small Insure fix for a memory leak. More fixes to come perhaps ...Richard Sharpe2001-03-271-2/+52
| | | | | Also fixed an error return for smbc_rmdir so that we can distinguish between EACCES and ENOTEMPTY
* Removed NFS quotas code for Solaris as Alan wants to re-write it.Jeremy Allison2001-03-271-279/+112
| | | | Jeremy.
* Patch from itegem <J.P.M.v.Itegem@ele.tue.nl> to handle LPRng v3.16 and above.Jeremy Allison2001-03-271-11/+30
| | | | Jeremy
* Added NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.Jeremy Allison2001-03-271-112/+279
| | | | | | sun1.samba.org is down at the moment so I can't test the compile on this. I'm sure Solaris people using quotas will scream if I've meesed anything up :-). Jeremy.
* standards.h only exists on IRIX 6.x and above (Herb please check !).Jeremy Allison2001-03-272-2/+2
| | | | Jeremy.
* Patch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"Jeremy Allison2001-03-272-52/+84
| | | | | | problems with smbd failing to create a log file. If we can't create a log file keep using the old file. Jeremy.
* Fix for ENOSPC from DCB.Jeremy Allison2001-03-271-4/+10
| | | | Jeremy.
* Bail out early if null passwords and lp_null_passwords not set.Jeremy Allison2001-03-271-0/+5
| | | | Jeremy.
* merge from 2.2Gerald Carter2001-03-271-8/+71
|
* Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip onJeremy Allison2001-03-261-1/+2
| | | | | connection fail. Jeremy.
* Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and ↵Jeremy Allison2001-03-266-26/+75
| | | | | | | smb.conf file in utf8. Jeremy.
* Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.Jeremy Allison2001-03-261-1/+11
| | | | Jeremy.
* Missed a cli_set_port on message code connect.Jeremy Allison2001-03-261-1/+1
| | | | Jeremy.
* Patch from Sean.Batt@anu.edu.au to ensure error reporting is done beforeJeremy Allison2001-03-261-3/+3
| | | | | any code that could modify errno is called. Jeremy.
* Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.Jeremy Allison2001-03-261-1/+13
| | | | Jeremy.
* Patch to make automount lookup fallback to get home directory from getpwnam.Jeremy Allison2001-03-262-28/+40
| | | | | From Robert Montjoy <Rob_Montjoy@ECECS.UC.EDU>. Jeremy.
* smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved itJeremy Allison2001-03-263-15/+15
| | | | | to the places where [f]chmod_acl is called instead. Jeremy.
* Ensure get/set NT ACL code is redirected through vfs.Jeremy Allison2001-03-261-2/+2
| | | | Jeremy.
* smbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.Jeremy Allison2001-03-262-67/+19
| | | | | smbd/vfs.c: Don't call [f]chmod_acl if no acl support. Jeremy.
* merge from 2.2Gerald Carter2001-03-251-0/+96
|
* Added Gerald's fixes.Jeremy Allison2001-03-232-3/+0
| | | | Jeremy.