1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

295 Commits

Author SHA1 Message Date
Tim Potter
0e551158b7 r422: Compile fix for OpenBSD (ENOTSUP not supported - ha ha).
From Eric Mertens.
(This used to be commit d98a36b459)
2007-10-10 10:51:23 -05:00
Stefan Metzmacher
77182a81f0 r408: - replace (conn->admin_user != True) with (current_user.uid != 0)
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 87e97d7723)
2007-10-10 10:51:22 -05:00
Jeremy Allison
4938095e77 r247: Fixup a couple of debug messages.
Jeremy.
(This used to be commit c664a277b4)
2007-10-10 10:51:15 -05:00
Jeremy Allison
5573a9ed66 r225: Patch from Pat.Hayward@propero.net to make the session_users list dynamic.
I restricted it to 128k max to prevent DOS attacks.
Jeremy.
(This used to be commit 70fb2a196d)
2007-10-10 10:51:14 -05:00
Jeremy Allison
cd9b973b17 r150: Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for the
UNIX info levels, and the short case preserve names. Tested
with NT - needs more testing. Will work on this more on Monday.
Jeremy.
(This used to be commit 88a9bca9aa)
2007-10-10 10:51:11 -05:00
Jeremy Allison
1db9257c95 r96: Stupid f&%'n UNIX extensions.... SETPATHINFO
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 21cc6ab7e8)
2007-10-10 10:51:08 -05:00
Jeremy Allison
bd04072585 r81: Make EA's case independent - fix smbtorture to test for this.
Jeremy.
(This used to be commit 0661357484)
2007-10-10 10:51:07 -05:00
Jeremy Allison
722aa118c6 Added per-share parameter "store dos attributes". When set, will store
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 ed653cd468)
2004-04-02 18:46:19 +00:00
Jeremy Allison
d113219e78 Added support for OS/2 EA's in smbd server. Test with smbtorture eatest.
New protocol option "ea support" to turn them on (off by default). Conrad
at Apple may like this as it allows MacOS resource forks to be stored on
a file. Passes valgrind. Documentation to follow.
Jeremy.
(This used to be commit 8cc10a6c05)
2004-03-31 02:20:16 +00:00
Jeremy Allison
1a643a6fe9 Committed test code by mistake... removing.
Jeremy.
(This used to be commit 73433dc349)
2004-03-29 23:42:48 +00:00
Jeremy Allison
578d715755 Setting EA's to zero length deletes them.
Jeremy.
(This used to be commit 01fb871762)
2004-03-29 23:39:13 +00:00
Jeremy Allison
95fee5e3bf Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
(This used to be commit 29909ce26a)
2004-03-12 20:24:05 +00:00
Jeremy Allison
46a718189c Fix dfs referrals - don't use check_path_syntax. Also use mb char calls in
dfs code.
Jeremy.
(This used to be commit 42175b4518)
2004-03-09 23:26:58 +00:00
Jeremy Allison
48eb635f31 Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
(This used to be commit 92c3ae3458)
2004-03-05 22:32:45 +00:00
Jeremy Allison
f0039da196 Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
(This used to be commit aad6eb2240)
2004-03-03 23:14:23 +00:00
Jeremy Allison
fba5a72249 Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
(This used to be commit c9f31fafed)
2004-03-03 20:55:59 +00:00
Jeremy Allison
3c1d00d12a More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
(This used to be commit 367f5c3bc2)
2004-02-28 00:56:42 +00:00
Jeremy Allison
69058407ef Fixup bad-path error found by gentest.
Jeremy.
(This used to be commit 63d47f3364)
2004-02-24 00:38:39 +00:00
Jeremy Allison
ef8f827449 Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
(This used to be commit 0ea0ada6c6)
2004-02-20 23:19:39 +00:00
Jeremy Allison
570f2b73b4 Ensure the server can cope with multiple secondary trans
requests when signing is turned on.
Jeremy.
(This used to be commit 206464a748)
2003-12-01 06:53:10 +00:00
Gerald Carter
057c031d06 bug 696; check for an invalid fid before dereferencing the fsp pointer
(This used to be commit f5229d5d62)
2003-10-30 15:57:52 +00:00
Jeremy Allison
2e46c7648b Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
(This used to be commit 26bfe37a10)
2003-10-28 18:32:03 +00:00
Jeremy Allison
0ce2c6ecb8 Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
(This used to be commit 74148111e1)
2003-10-28 00:51:21 +00:00
Jeremy Allison
450bc69ab3 Tidyup wrap checking.
Jeremy.
(This used to be commit 41d1870a51)
2003-10-16 20:44:43 +00:00
Jeremy Allison
2511ee970b Version of patch from nick@isilon.com (Nicholas Kirsch) for bug #564.
Canonicalise SMB_INFO_ALLOCATION in the same was as SMB_FS_FULL_SIZE_INFORMATION.
Jeremy.
(This used to be commit 166efa30d2)
2003-10-07 00:06:01 +00:00
Jeremy Allison
b1ca1d9134 Correct fix for excel read-only bug. Add panic for logic error in developer mode.
Jeremy.
(This used to be commit f00af98f37)
2003-10-02 17:26:42 +00:00
Jeremy Allison
966b0fc7c9 More cachegrind tuning, plus fix an error message.
Jeremy.
(This used to be commit 8cb9ec5d53)
2003-09-05 21:30:50 +00:00
Jeremy Allison
1f438cbfbf Added level 262. Found by Samba4 torture tester.
Jeremy.
(This used to be commit 12d8863be3)
2003-08-18 21:54:42 +00:00
Jeremy Allison
fdf78a4997 Add level 261 to search. Found using Samba4 tester.
Jeremy.
(This used to be commit 4ee99d1c41)
2003-08-18 21:38:33 +00:00
Jeremy Allison
3a052c9e0a Implemented the level 1010 NT rename level. Many fixes for Samba4 test
correctness.
Jeremy.
(This used to be commit f57429befa)
2003-08-16 02:34:03 +00:00
Jeremy Allison
87a672067d Fix attribute set using setfileinfo - Samba4 found.
Jeremy.
(This used to be commit 309835deac)
2003-08-15 01:22:01 +00:00
Jeremy Allison
8ceb628d5c Ignore silently set disposition information when set on a path.
Samba4 tester.
Jeremy.
(This used to be commit e9cef61555)
2003-08-15 00:42:16 +00:00
Jeremy Allison
5a8c2f5a44 nlink field should decrement when delete pending is set.
Found by Samba4.
Jeremy.
(This used to be commit fbdf276e36)
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 273ebfceb3)
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 97e1d5c957)
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 10d90171ed)
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 fd86e2a387)
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 901544b29b)
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 9f835b85dd)
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 84cee2c3fc)
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 c6de5df01d)
2003-07-01 22:07:27 +00:00
Andrew Tridgell
7e82bf284c 2 more places where win2003 forces UCS2
(This used to be commit b64f6e52ec)
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 83e0c21831)
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 791a4cc7cf)
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 ff5e37ed29)
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 5a5f59cf5e)
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 381cea68b8)
2003-06-06 04:21:43 +00:00
Andrew Tridgell
b6cb0e914d fixed the termination of several trans2 strings
(This used to be commit 8f23ad3054)
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 f7cd16ab58)
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 1634346e2a)
2003-06-01 13:43:21 +00:00