1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

263 Commits

Author SHA1 Message Date
Jeremy Allison
5a8c2f5a44 nlink field should decrement when delete pending is set.
Found by Samba4.
Jeremy.
(This used to be commit fbdf276e36b66e9ae65cb3f127ed80cfe9a43cac)
2003-08-14 23:47:12 +00:00
Jeremy Allison
6a0c1d0baf Fix setfileinfo level 1 - it only takes 12 bytes. Found by Samba4
torture tester.
Jeremy.
(This used to be commit 273ebfceb3142f485c2874f84114600d4a58c523)
2003-08-14 23:40:45 +00:00
Jeremy Allison
1699fadcdb Fix changing of attributes via setattr. Samba4 test fixes.
Jeremy.
(This used to be commit 97e1d5c9573513c9c9be9a709341bda54fbe44be)
2003-08-14 23:15:02 +00:00
Jeremy Allison
4e8b36a574 Fix SMBseek and get/set position information SMBs. Works against
Samba4 tester. You will need a make clean; make all after this !
Jeremy.
(This used to be commit 10d90171ed58bee3e5ab6476341059b585034134)
2003-08-14 21:16:06 +00:00
Jeremy Allison
c41fad7647 Query volume info level 2 fix - found by Samba4 tester.
Jeremy.
(This used to be commit fd86e2a38766af1cf01667c6f6248af7572b278f)
2003-08-13 03:49:43 +00:00
Jeremy Allison
760e58cf80 Add the same signing code to the server. Ensure we use identical session
numbers and MIDs when in trans/trans2/nttrans code.
Jeremy.
(This used to be commit 901544b29b4d815709b3dbad3012f1d2c419d904)
2003-08-02 03:06:07 +00:00
Gerald Carter
3a5dc7c2ec convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len.  At least this helps to be consistent.
(This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
2003-07-23 12:33:59 +00:00
Andrew Tridgell
14f3c75070 this fixes a bug where Samba would under some circumstances return
incomplete directory listings. The problem was the exact_match
optimisation that short circuited directory listings on exact
matches. This optimisation doesn't work when the unix filename
contains Microsoft wildcard characters.
(This used to be commit 84cee2c3fcc34fe6356e842821a5f0a361477637)
2003-07-18 06:48:28 +00:00
Jeremy Allison
b32d48533f Fix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
call for Japanese characters.
Jeremy.
(This used to be commit c6de5df01d470c2dab48cdd6298f450fa94f9a8e)
2003-07-01 22:07:27 +00:00
Andrew Tridgell
7e82bf284c 2 more places where win2003 forces UCS2
(This used to be commit b64f6e52ec8aa0892b405d3360079ababc8527f4)
2003-06-06 06:01:45 +00:00
Andrew Tridgell
dc5f0b28cf - the ALL_INFO trans2 QFILEINFO level uses a forced UCS2 name
- win2003 returns 0 for ea_size when there are no EAs
(This used to be commit 83e0c21831f32aad2dfb6ebe4a27c7a0d2adb692)
2003-06-06 05:34:02 +00:00
Andrew Tridgell
6b943b5b21 - the 8.3 name in BOTH_DIRECTORY_INFO is supposed to be always unicode
(to match win2003 behaviour)

- added the STR_TERMINATE_ASCII flag from samba4 so we can get the
  string termination right for the case where it is supposed to be
  non-terminated for UCS2 and terminated when ASCII
(This used to be commit 791a4cc7cf84eca77116bca00aeb5f95560f6705)
2003-06-06 05:15:28 +00:00
Andrew Tridgell
32bf831e25 fixed the string alignment of the QUERY_EA_SIZE trans2 findfirst level
(This used to be commit ff5e37ed293b61c2585c66e7366fae478754cca1)
2003-06-06 04:31:48 +00:00
Andrew Tridgell
d51b463b3f fixed the layout of the FULL_DIRECTORY_INFO trans2 findfirst level
found by samba4 smbtorture SEARCH test
(This used to be commit 5a5f59cf5eec39394b8aec4aab7f2c347d617255)
2003-06-06 04:29:41 +00:00
Andrew Tridgell
7d4b53c2aa removed the 'valgrind fix' that (although it may well remove a
valgrind warning) causes us to return a completely wrong 8.3 filename
in directory searches!

come on guys, this close to a release you need to TEST CODE BEFORE COMMITTING
(This used to be commit 381cea68b81aeb42b088677d2a8bfd410a7da329)
2003-06-06 04:21:43 +00:00
Andrew Tridgell
b6cb0e914d fixed the termination of several trans2 strings
(This used to be commit 8f23ad3054febe47b667172d680d2d19ad141416)
2003-06-04 06:03:21 +00:00
Andrew Tridgell
878944f1ec shouldn't null terminate trans2 qfileinfo all_info/name
(This used to be commit f7cd16ab58753be25bc9c7b487289361e3882da3)
2003-06-04 05:45:40 +00:00
Andrew Tridgell
3db0d893f3 added the COMPRESSION_INFO trans2 QFILEINFO level and fixed the
IS_NAME_VALID QPATHINFO level
(This used to be commit 1634346e2a6e73af80d4e68d50c6398fb24869a5)
2003-06-01 13:43:21 +00:00
Andrew Tridgell
71b0b6007e fixed the ALL_INFO and ALL_INFORMATION trans2 QFILEINFO levels. The
structure we were using was completely wrong after the first few
parameters.

found by samba4 testsuite. Lots of other stuff also fails, but is
harder to fix.
(This used to be commit 6f34bd423ebb805e1e5a3b61bb5b2ca8530ce69d)
2003-06-01 13:25:16 +00:00
Jeremy Allison
0899066fd6 Got us happy running under valgrind again :-).
Jeremy.
(This used to be commit b6ab9d73610861d225d72845d4df7cf970155e39)
2003-05-31 02:03:58 +00:00
Gerald Carter
7f256452c1 fix quota build on non-64bit systems
(This used to be commit 227ac953386d0040c661cde85a5b23e10529fb0c)
2003-05-14 20:22:48 +00:00
Alexander Bokovoy
2c01eef4d7 Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. Now we are defaulting to --with-quotas=no but anyway trying to test them in configure. This is done to get information about as much quota API variations as possible -- when --with-quotas=no this does not affect build but provides us with more detailed information on build farm.
(This used to be commit 3786695c72e6ff6a52a527382ac77142e236971b)
2003-05-14 14:38:11 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
eeac7cc99d Wrap into WITH_QUOTAS yet another place in trans2
(This used to be commit fea5d85d947965bd4789ab31607fd48d78403696)
2003-05-12 02:53:17 +00:00
Alexander Bokovoy
f9c23432ae Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit 01cff3e2e4e2724ed112fa62a775055192a2207b)
2003-05-12 02:01:31 +00:00
Alexander Bokovoy
e102cdf58e Small fix for HAVE_SYS_QUOTAS usage, spotted by build farm
(This used to be commit ee5fa840686a1d9789688e7c0f1c3ca8d0175e94)
2003-05-12 01:43:59 +00:00
Alexander Bokovoy
e8573c8fa9 Add NT quota support. Patch from Stefan (metze) Metzemacher
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab
2. Disabled by default and when requested, will be probed and enabled only on Linux where it works
3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far
Documentation to follow
(This used to be commit 4bf022ce9e45be85609426762ba2644ac2031326)
2003-05-12 01:20:17 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
2003-05-11 23:34:18 +00:00
Jeremy Allison
2746a909b2 SMB_QUERY_FILE_ALT_NAME_INFO and SMB_FILE_ALTERNATE_NAME_INFORMATION
are identical - noticed by "Dr. Tilo Levante" <tilo@levante.de>.
Jeremy.
(This used to be commit f6d7c279bc8354202f2a9b39fec4a4c8ace368a3)
2003-05-07 22:19:43 +00:00
Jim McDonough
f870072e5c Fix length in findfirst2 responses, fix os/2 clients
(This used to be commit c12feff680b183a22d933bab65b5c095c0548e7e)
2003-04-24 18:58:26 +00:00
Jeremy Allison
d5f235912f Re-fix regression noticed by Tom Schaefer <tom@umsl.edu> due to
correct delete on close semantics change.
Jeremy.
(This used to be commit 7a45b45490e6001c17fc89aabfa802f76fa3fe5e)
2003-04-04 21:58:55 +00:00
Andrew Bartlett
b01a915b64 Merge whitespace to match HEAD.
(This used to be commit 454fb434195b8d46cbcbaee6a200070e5bcd7364)
2003-03-18 10:42:41 +00:00
Andrew Bartlett
ad0d6509a7 Merge from HEAD:
- Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit 10b53d7c6fd77f23433dd2ef12bb14b227147a48)
2003-03-17 22:56:13 +00:00
Jeremy Allison
2fd693e13e Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.
Jeremy.
(This used to be commit 723e9ee31cc1f5eb4b7aefefd58f7f13d0abda05)
2003-03-07 23:34:51 +00:00
Jeremy Allison
442a55b6b4 Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parameters
differently to W2K, cope with this.
Jeremy.
(This used to be commit 5e2755508f08ecf561348d4edf0a4064732c5213)
2003-03-07 00:30:47 +00:00
Jeremy Allison
e6ac820d81 Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit 41894489e82a474f4f8f66aa2c7a117ed05b33e1)
2003-02-11 02:24:51 +00:00
Andrew Tridgell
42d9c73424 merge alt_name patch from head
(This used to be commit 20ebdee36d5351731698bdef6602fc73a45b1651)
2003-01-14 03:02:18 +00:00
Jeremy Allison
00a20ce45f The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
(This used to be commit 6c23d2030ab8dddff4c849903c529f0012b94027)
2002-12-05 04:00:16 +00:00
Jeremy Allison
f60f763a2d Need brackets around macro args. Spotted by Patrick Welche <prlw1@newn.cam.ac.uk>.
Jeremy.
(This used to be commit 2b9d35cf3f91e9488a55e0a73150d4c18b998afe)
2002-12-04 18:45:25 +00:00
Jeremy Allison
821e3d19f0 Missed the removal of the incorrect ifdef.
Jeremy.
(This used to be commit f9cef6f42193b3ae70569e2c7584f088fb53a51c)
2002-12-04 03:21:21 +00:00
Jeremy Allison
ce4628c199 Fix for 64 bit issues with oplocks and allocation size.
Jeremy.
(This used to be commit 379e719e983fb71f94cd2b691f8b194c109496c3)
2002-12-04 03:12:09 +00:00
Jeremy Allison
2f194322d4 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-12 23:20:50 +00:00
Jeremy Allison
f735551b9e First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
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.
(This used to be commit 40eafb9dde113af9f7f1808fda22908953f7e8c3)
2002-10-23 01:22:32 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
127e77e6e3 Sync 3.0 branch with head
(This used to be commit 42615b945e2e48e53a21ea47f2e45407913a6a1e)
2002-08-17 15:27:10 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
Andrew Tridgell
9cd0306baa This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-11 02:20:56 +00:00
Jeremy Allison
2a664807c5 Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Forward ported some of the code tidyups from 2.2.
Jeremy.
(This used to be commit 2475c09b354cc7b5f4ce384e4497207d30f619bb)
2002-04-02 19:34:36 +00:00
Jeremy Allison
906d3bda26 Ensure that setting file length can return disk full on failure.
Jeremy.
(This used to be commit 14e2beca9b8fa1c8d893013f52f42b2721a82758)
2002-03-28 01:00:31 +00:00
Jeremy Allison
c90cd26e94 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
(This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-23 02:57:44 +00:00