summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* 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. (This used to be commit 13765eca71e54aa5d048ce36cd8066b8406777c8)
* 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 (This used to be commit 8b0e3679a6dc479c0e3177707dff386559779b69)
* 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. (This used to be commit f952380c5d0cfbbec1e7de98b712952f302cddfd)
* Fixed extern ref typo for file generic perms. 2am coding strikes again :-).Jeremy Allison2001-03-301-1/+1
| | | | | Jeremy. (This used to be commit fe38692643ad7c163c30d9c031a8bd3dec81ffee)
* 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. (This used to be commit 51987684bd231c744da2e5f3705fd236d5616173)
* Added one more test - just to make sure flag can be unset.Jeremy Allison2001-03-301-1/+43
| | | | | Jeremy. (This used to be commit 54960b9c8d6be6646a0c0e8ef9ee6c61a4b69cf8)
* 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. (This used to be commit a55ed1a91d91beafb2f199d1da530169715dbe0e)
* Changed to using GENERIC_XX constants instead of hex values to makeJeremy Allison2001-03-301-9/+57
| | | | | | delete test explicit. Jeremy. (This used to be commit cb5963af0ecabab928aafacd27714e337b9bb37e)
* Added delete on close test that has allowed me to determine how w2kJeremy Allison2001-03-301-0/+147
| | | | | | behaves in this situation. Jeremy. (This used to be commit b0266fe0a8c707cb7e818269dc7fe52da709fdab)
* Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.Jeremy Allison2001-03-292-0/+42
| | | | | Jeremy. (This used to be commit 6f7d9e29e4d3a17254ff0ae20c0da63eacded7fe)
* 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. (This used to be commit f602fa1205e99541e825ccae8502c35cd0e7ccfc)
* Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.Jeremy Allison2001-03-281-1/+1
| | | | | Jeremy. (This used to be commit 3f9cf2e07bb6d429858e47ab6989ea8cf30d0217)
* Fixed typo bug spotted by Jim Vopni jimv@metrics.com. Caused no status toJeremy Allison2001-03-281-1/+1
| | | | | | | be returned. Jeremy. CVS ---------------------------------------------------------------------- (This used to be commit 5b7f4cf271ad449277c0ea7a825ed4d50205d729)
* rename of 16 new_smb_io functions to smb_io_* for consistency sakeGerald Carter2001-03-284-165/+165
| | | | | (merge from 2.2) (This used to be commit ea963a648b889da9e47661c61c7fafe13b277e75)
* More memory leaks fixed courtesy of Insure ...Richard Sharpe2001-03-281-11/+44
| | | | (This used to be commit 4fc385ca6830cb2ac6198501966088fbed27330e)
* Changed usage message for query_groupmem and query_usergroups as they don'tTim Potter2001-03-281-2/+2
| | | | | convert names to rids yet. (This used to be commit cea13dff759dfb7efb5d2a248dd77905e16b1605)
* 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. (This used to be commit 4fa8cf68c3921f93a27d290d6dd1ed4423dfcf1c)
* make protoGerald Carter2001-03-271-7/+7
| | | | (This used to be commit 0799b272a07cc288be29e0f606b80219e3a029a3)
* merge from 2.2.Gerald Carter2001-03-274-69/+69
| | | | (This used to be commit 817258f1174d27d74e8b21ffb5f1384db2238007)
* 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 (This used to be commit f204901fcc11eb3299cc6c7f3793fc3c7bd6bc57)
* Removed NFS quotas code for Solaris as Alan wants to re-write it.Jeremy Allison2001-03-271-279/+112
| | | | | Jeremy. (This used to be commit 13c9823eb19baa4b1262ad0fd416d9ecbc92b160)
* 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 (This used to be commit 40bccf26dbdb88c639d272d511bfce510a43de2a)
* 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. (This used to be commit 3d2c59bfe0bc30d8cecf0af81b74d4232b09bdb2)
* standards.h only exists on IRIX 6.x and above (Herb please check !).Jeremy Allison2001-03-272-2/+2
| | | | | Jeremy. (This used to be commit 80ce12d95396bac53b2303955e5081d9632cbf55)
* 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. (This used to be commit c4e6aa1322fa7bc59708163c42eef6ccbd6c2305)
* Fix for ENOSPC from DCB.Jeremy Allison2001-03-271-4/+10
| | | | | Jeremy. (This used to be commit 55fcd71eecf4477c56fc4a01bda6d452d3b0caa4)
* Bail out early if null passwords and lp_null_passwords not set.Jeremy Allison2001-03-271-0/+5
| | | | | Jeremy. (This used to be commit 7c718fc85e3dbfaf0195e352d06a8c682a6036fc)
* merge from 2.2Gerald Carter2001-03-271-8/+71
| | | | (This used to be commit 3a03065b43d073205e421434bc32082c0f9f64da)
* Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip onJeremy Allison2001-03-261-1/+2
| | | | | | connection fail. Jeremy. (This used to be commit 07cee46d1de1caaf6f9f1b6139dd21bcc5d67e8e)
* 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. (This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)
* Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.Jeremy Allison2001-03-261-1/+11
| | | | | Jeremy. (This used to be commit 0c9a92a0557b2595e520cbaf2feaa587f9e7502d)
* Missed a cli_set_port on message code connect.Jeremy Allison2001-03-261-1/+1
| | | | | Jeremy. (This used to be commit 799e043ae3a4478b9e42604a3d1c88abbb74f047)
* 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. (This used to be commit 109a174de9e23ccc89ae17d6b5b425b5947c8565)
* Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.Jeremy Allison2001-03-261-1/+13
| | | | | Jeremy. (This used to be commit 4a3d2a13d3b0acab69c27b5b6522575b949eb5e6)
* 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. (This used to be commit 1fe60064bddf29fd778918d3f1a7026002029bd7)
* 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. (This used to be commit 641ada44ae6429761c1fd0dbcafabc69f897fac7)
* Ensure get/set NT ACL code is redirected through vfs.Jeremy Allison2001-03-261-2/+2
| | | | | Jeremy. (This used to be commit d43d907c38008bb02042cb4bc2d899f62bdc115b)
* 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. (This used to be commit 83f52394e688b4be3ac4cef67d8980a5b8ed3192)
* merge from 2.2Gerald Carter2001-03-251-0/+96
| | | | (This used to be commit b6227751f117ad507838db0cf0032093f6251646)
* Added Gerald's fixes.Jeremy Allison2001-03-232-3/+0
| | | | | Jeremy. (This used to be commit be825b07464f54d717333318a08154cff632f706)
* a much simpler talloc() implementation. This version has the followingAndrew Tridgell2001-03-232-31/+37
| | | | | | | | | | | | | | advantages: - memory is trackable by insure - a very simple talloc_realloc() is possible (I've added it) It is slower than the previous talloc code, but I don't think that is going to be a problem. If it is a problem then there are some ways we can make it faster but I'd like to leave those until we have tested this a bit and can see what performance problems might show up in profiling (This used to be commit 1ab63cf3a6f62c3e4ca19a549bde78dad0eb4340)
* More unused variables.Jeremy Allison2001-03-233-28/+6
| | | | | Jeremy. (This used to be commit 38b19fad2851a65268b31c7e0240ed36a8407be4)
* Fix insure-found parameter size missmatch.Jeremy Allison2001-03-232-3/+3
| | | | | Jeremy. (This used to be commit 2f658691e47406f38bec2fc20951f82043fbf894)
* Made the fixes Andrew suggested to asci string code to use srvstr_push.Jeremy Allison2001-03-231-2/+2
| | | | | Jeremy. (This used to be commit 1391aa6a6fbe8391a4421f5770da40556f011bb8)
* Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2001-03-235-17/+210
| | | | | | | | First one adds a new info level into the lanman printing and an ioctl to the trans2 code. Andrew - this uses ASCII only. It looks ok to me but please check ! Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped. Jeremy. (This used to be commit da79b519e0b6b4317d7fb5260d74e0e74a7e0b46)
* groupdb/mapping.c:Jeremy Allison2001-03-235-464/+482
| | | | | | | | | | include/proto.h: Fix missing (void) in proto. rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that clash with users. smbd/posix_acls.c: Ensure default ACE's are sensible. utils/pdbedit.c: Fix from Simo Sorce. Jeremy. (This used to be commit 29414fe0d6665642d9b5f88a35e712426376c47f)
* can delete mapping from command line now.Jean-François Micouleau2001-03-231-12/+15
| | | | | J.F. (This used to be commit 287d9fb06899fe7721fdfcd5ccaa566935d31c4d)
* Sync up with 2.2 ACL code.Jeremy Allison2001-03-232-52/+84
| | | | | Jeremy. (This used to be commit 5b9a88c2d0da3479f91131f66ff741e88f9760ee)
* first pass of the new group mapping codeJean-François Micouleau2001-03-2310-519/+2208
| | | | | J.F. (This used to be commit 7154deb026d53cb0cd503562174c3332a372be63)
* New POSIX ACL mapping code. Works with UNIX permissions, now for testingJeremy Allison2001-03-223-338/+710
| | | | | | with real ACLs... Jeremy. (This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)