summaryrefslogtreecommitdiffstats
path: root/source3/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
...
* r6895: Add "acl check permissions" to turn on/off the new behaviour ofJeremy Allison2007-10-101-2/+2
| | | | | | | | | checking for write access in a directory before delete. Also controls checking for write access before labeling a file read-only if DOS attributes are not being stored in EA's. Docuementation to follow. Jeremy. (This used to be commit dd1a5e6e499dd721c5bb8d56a61810a7454a3449)
* r6633: Added "check_path_syntax_posix()" in preparation for handlingJeremy Allison2007-10-101-6/+16
| | | | | | POSIX pathnames. Not yet used. Jeremy. (This used to be commit 381da9b55d6a3fda2ba4a3f12bee50853b7fd3b3)
* r6307: Ensure info requested bitmask is printed in log when querying ↵Jeremy Allison2007-10-101-1/+2
| | | | | | | security descriptors. Jeremy. (This used to be commit 4db288e3143c1ce691ae586a7353da00fec85879)
* r6269: With help from Marcel Müller <mueller@maazl.de> in tracking down the ↵Jeremy Allison2007-10-101-2/+5
| | | | | | | | | bug, fix trans2 and nttrans secondary packet processing. We were being too strict checking the incoming packet (by 1 byte). Jeremy. (This used to be commit 3eea1ff4b7428325c7f304bcac61d6297209a4b8)
* r6263: Get rid of generate_wellknown_sids, they are const static and ↵Volker Lendecke2007-10-101-1/+0
| | | | | | | | | initializable statically. Volker (This used to be commit 3493d9f383567d286e69c0e60c0708ed400a04d9)
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2007-10-101-2/+2
| | | | (This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
* r6204: Fix double-free of talloc context.Jeremy Allison2007-10-101-1/+0
| | | | | Jeremy. (This used to be commit d5c56d25741e148ccae7c91f9b0157498d7ff148)
* r6203: Fix attribute return on creating a directory with nttrans_create.Jeremy Allison2007-10-101-31/+31
| | | | | | Fix strange allocation semantics of openX. Jeremy. (This used to be commit da5a8b539d39d2765de22c3e55e9f284992ff966)
* r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global ↵Jeremy Allison2007-10-101-20/+12
| | | | | | | nastyness. Jeremy. (This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
* r6160: Ensure allocation size is correctly returned for OpenX. Only set ↵Jeremy Allison2007-10-101-33/+35
| | | | | | | | allocation on create/truncate for nttrans. Jeremy. (This used to be commit fb05ac4c03eec21f3f18668610022ebfa6d6bf4a)
* r6146: Added OS/2 EA support in trans2_open and trans2_mkdir. Fixed in ↵Jeremy Allison2007-10-101-24/+36
| | | | | | | nttrans_create. Jeremy. (This used to be commit 989fcb4c084c63f1e3b114af68ef5bc0a2fbc09e)
* r6141: Fix OS/2 EA's for NTcreate. OpenX and mkdir to follow.Jeremy Allison2007-10-101-4/+90
| | | | | Jeremy. (This used to be commit 106f91ff65acd23a7dda4d0ec89ae41ecb28153e)
* r6124: Fix for bug #2242 from Tom Lackemann <cessnatomny@yahoo.com> - don'tJeremy Allison2007-10-101-7/+20
| | | | | | set SD on an NTtransact create unless we created the file. Jeremy. (This used to be commit b42eaf424e34544fae3f0fc473694e61dda2a11c)
* r6014: rather large change set....Gerald Carter2007-10-101-0/+2
| | | | | | | | | | | | | | | pulling back all recent rpc changes from trunk into 3.0. I've tested a compile and so don't think I've missed any files. But if so, just mail me and I'll clean backup in a couple of hours. Changes include \winreg, \eventlog, \svcctl, and general parse_misc.c updates. I am planning on bracketing the event code with an #ifdef ENABLE_EVENTLOG until I finish merging Marcin's changes (very soon). (This used to be commit 4e0ac63c36527cd8c52ef720cae17e84f67e7221)
* r5893: Get us to pass some of the Samba4 EA tests. EA_LIST seems to beJeremy Allison2007-10-101-0/+5
| | | | | | working - need to valgrind it to be sure. Jeremy. (This used to be commit 8b2b652c0a47298cd188c67d256dfdffe01a951d)
* r5720: Attempt to fix bug #2382 (Excel shared workbook stops working). AlsoJeremy Allison2007-10-101-1/+1
| | | | | | | incorporates part of the fix created by ke_miyata@itg.hitachi.co.jp for bug #2045 (MS-Office behavior of timestamp). Jeremy. (This used to be commit 4f3b12ac73487f4ccb37c17506af1abf5acc80cd)
* r5637: Actually test and fix the crash bugs (sorry:-).Jeremy Allison2007-10-101-2/+2
| | | | | Jeremy. (This used to be commit 4348ca48549ded8c056877befa216f0e768cb2c1)
* r5636: Re-add the allocation size - parameterized by share asJeremy Allison2007-10-101-4/+4
| | | | | | | | "allocation roundup size", by default set as 1Mb. From advice by BlueArc about Windows client behaviour. VC++ people can set this to zero to turn it off. Jeremy. (This used to be commit 833ca101772bfab65dbd79eb64f63464177f144e)
* r5548: Stop lying about allocation sizes to Windows clients. It was a niceJeremy Allison2007-10-101-4/+4
| | | | | | | idea, and aparently improved performance in some circumstances, but it breaks the VC++ compiler :-(. Not cool. Fix bug #2146. Jeremy. (This used to be commit b9f147634df0126320ffe3b9a23068e76f6c1681)
* r5530: Keep the TRANS call up to date with the NTCreateX call.Jeremy Allison2007-10-101-1/+11
| | | | | Jeremy. (This used to be commit 98a07e1520d6fb1f6f5320bc70ac33d4c5052ea6)
* r5524: Don't do share mode checks on can_delete if open, the rest of the openJeremy Allison2007-10-101-1/+2
| | | | | | code will do this correctly. More for bug #2201. Jeremy. (This used to be commit faecf639efdecf949e91184d041489aa54e8664f)
* r5510: Optimisation to only do can_delete check if client asks for ↵Jeremy Allison2007-10-101-0/+9
| | | | | | | | FILE_SHARE_DELETE. Not completely correct but will catch the XP SP2 problem. Jeremy. (This used to be commit 1e2d0fcdbb72735f8b53d9faaec07d711ae236d0)
* r5497: Fix for DIR1 failures in build farm. It struck me that weJeremy Allison2007-10-101-2/+6
| | | | | | | | only care about failing with ACCESS_DENIED if we can't delete with DELETE access requested. All other errors will be processed as normal. Jeremy. (This used to be commit 360800592c55c9dd8fd787944b3d482f2b9eb951)
* r5324: In order to process DELETE_ACCESS correctly and return access deniedJeremy Allison2007-10-101-0/+18
| | | | | | | to a WXPSP2 client we must do permission checking in userspace first (this is a race condition but what can you do...). Needed for bugid #2227. Jeremy. (This used to be commit da23577f162b6bdca7d631fca256a9b3b04043e4)
* r5225: fix mem leak and debug messageStefan Metzmacher2007-10-101-1/+2
| | | | | metze (This used to be commit c0ee5922cdd4e57007e3a8f16cae71550fb38f2e)
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-6/+17
| | | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* r4007: Fix bug #2088 - ensure inherit permissions is only applied on a new file,Jeremy Allison2007-10-101-1/+1
| | | | | | not an existing one. Jeremy. (This used to be commit fbbdb72cf1adfe567112556626f26b031747f440)
* r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | consistent enum type for Protocol extern. Jeremy. (This used to be commit 65dfae7ea45d4c9452b2a08efa09b01d870142f3)
* r3674: Stefan Esser <s.esser@e-matters.de> pointed out that the max dataJeremy Allison2007-10-101-20/+17
| | | | | | | | | value is only valid on the initial trans/trans2/nttrans request, so if there are secondary requests we can't read it from them. Read it from the initial request and pass as a parameter for those functions that need it. Jeremy. (This used to be commit e007845e67e0604321fb36b216a98e4fca1c98e1)
* r3666: Generalise fix for trans and nttrans multi-fragment requests.Jeremy Allison2007-10-101-2/+2
| | | | | Jeremy (This used to be commit 10b2489e3b2345a8532098523ebcebb73665a76f)
* r2637: Fix the roundup problem (returning 1mb roundup) for non-WindowsJeremy Allison2007-10-101-4/+4
| | | | | | clients. This upsets the smb client in the Linux kernel (and Linus :-). Jeremy. (This used to be commit dad699ce0b36d23b80fe70b74d5e98df568a0495)
* r2548: Fix for bug reported by Edward Spragins <spragins@gmail.com> - don't ↵Jeremy Allison2007-10-101-2/+3
| | | | | | | | try to set security descriptors on shares where this has been turned off. Jeremy. (This used to be commit 9cbe685d02fa1d3778958a3ade4965b64e5d0169)
* r2395: Patch from "Stefan (metze) Metzmacher" <metze@samba.org> to fixJeremy Allison2007-10-101-10/+15
| | | | | | opening of quota file. Jeremy. (This used to be commit 9a6e331639d7aace294dd663de7d27912fcae146)
* r1259: Ensure we pass Samba4 RAW-RENAME test.Jeremy Allison2007-10-101-9/+165
| | | | | Jeremy. (This used to be commit 756a00431105cf6349feb80a46b6f55a30eb3973)
* r1257: Ensure we deferr a sharing violation on rename correctly.Jeremy Allison2007-10-101-1/+11
| | | | | Jeremy. (This used to be commit b52a04a5cdcea83c99805181241c8c0760bcc22e)
* r1115: Fix for #1427. Catch bad path errors at the right point. Ensure allJeremy Allison2007-10-101-11/+31
| | | | | | our pathname parsing is consistent. Jeremy. (This used to be commit 5e8237e306f0bb0e492f10fb6487938132899384)
* r1093: Ensure we clear any cached errors on a deferred open call soJeremy Allison2007-10-101-0/+2
| | | | | | we don't return the wrong error code on the next packet. Jeremy. (This used to be commit c1b06deb574d7b8e746bdf0d6f0eab16848a6cc1)
* r1085: Now it's had some proper user testing, merge in the deferred open ↵Jeremy Allison2007-10-101-0/+8
| | | | | | | | | fix. I'm still doing more testing, but it fixes a behaviour that we've been wrong on ever since the start of Samba. Jeremy. (This used to be commit 894cc6d16296b934c112786eec896846156aee5d)
* r570: Remove lots of globals to handle case issues - move themJeremy Allison2007-10-101-28/+25
| | | | | | | | | to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy. (This used to be commit 578a508509d21226ad3332fc54c3ab54cd8ae452)
* r483: Fix typo of appending '\\' instead of '/' now we're usingJeremy Allison2007-10-101-2/+2
| | | | | | check_path_syntax. Jeremy. (This used to be commit 50ce579322ae394cb7c7a27e06f4ff08499b77b3)
* r481: Fix up assert caught by check_path_syntax.Jeremy Allison2007-10-101-2/+3
| | | | | Jeremy. (This used to be commit 8a58bd39da596cac68abc0143cdb17981642daf6)
* r408: - replace (conn->admin_user != True) with (current_user.uid != 0)Stefan Metzmacher2007-10-101-1/+1
| | | | | | | | | | because someone changed it in all other places too - fix quotas support from windows explorer we now got the unix file name of a fake_file metze (This used to be commit 87e97d7723674e3835578ef080ce554d9c5537ac)
* r96: Stupid f&%'n UNIX extensions.... SETPATHINFOJeremy Allison2007-10-101-7/+7
| | | | | | | | | | | | | | | normally takes as it's param entry the filename to be acted upon.... Unless it's UNIX extensions create hardlink, or UNIX extensions create symlink. Then it's param -> newfile name data -> oldfile name. This caused me to stuff them up in 3.0.2 (and the client commands link and symlink). Fixed them, everything is now called oldname and newname - thus specifying which name should already exist (hint - the old one...) and which will be created (newname). Jeremy. (This used to be commit 21cc6ab7e8a41160a3e2970623ade7445b5214d6)
* Added per-share parameter "store dos attributes". When set, will storeJeremy Allison2004-04-021-16/+7
| | | | | | | dos attributes in an EA. Based on an original patch from tridge, but modified somewhat to cover all cases. Jeremy. (This used to be commit ed653cd468213e0be901bc654aa3748ce5837947)
* Fix my breakage of NT pipes from the previous patch (sorry). Use theJeremy Allison2004-03-041-4/+1
| | | | | | original srvstr_pull_buf() function to get the pipename not srvstr_get_path(). Jeremy. (This used to be commit 2a263873fd6bbbf03a32136981e433dc43374da9)
* Added client "hardlink" commant to test doing NT rename with hard links.Jeremy Allison2004-03-031-2/+7
| | | | | | Added hardlink_internals() code - UNIX extensions now use this too. Jeremy. (This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
* Use a common function to parse all pathnames from the wire. This allowsJeremy Allison2004-03-031-29/+40
| | | | | | much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
* Can't set allocation size on directories, return correct error code onJeremy Allison2004-02-281-0/+12
| | | | | | fail if file exists and target is a directory. gentest. Jeremy. (This used to be commit f4a7ea6dc2b9f379a9c735670a49ac63818754c7)
* Figured out a new flags bit with gentest and ethereal....Jeremy Allison2004-02-251-2/+10
| | | | | Jeremy. (This used to be commit b4b684f1155b1abccb69cca7bca9819625dbfead)
* More gentest error fixups.Jeremy Allison2004-02-241-2/+0
| | | | | Jeremy. (This used to be commit 00f71fc8361919b87b62389ada8bd9a73f9f98b5)