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

648 Commits

Author SHA1 Message Date
Jeremy Allison
367f5c3bc2 More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
-
Jeremy Allison
3f35e3975f Interesting fact found by IFSTEST /t LockOverlappedTest...
Even if it's our own lock context, we need to wait here as
there may be an unlock on the way.
So I removed a "&& !my_lock_ctx" from the following
if statement.

if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) {

Jeremy.
-
Jeremy Allison
d448fb801e Fixup strange rename error case (gentest).
Jeremy.
-
Jeremy Allison
5107f6ee70 More gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you look
at what W2K3 accepts here it's COMPLETELY BROKEN ! :-).
Jeremy.
-
Jeremy Allison
d34785194c More gentest fixes.
Jeremy.
-
Jeremy Allison
1b0d54170a Ensure '.' and '..' don't match in delete requests.
Jeremy.
-
Jeremy Allison
00f71fc836 More gentest error fixups.
Jeremy.
-
Jeremy Allison
b38b3a5542 Fixup correct timeout values for blocking lock timeouts (tested at connectathon
by Herb).
Jeremy.
-
Gerald Carter
87343fc15a * BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping
  handle it.
-
Jeremy Allison
ad06edd1bb Fixes to check for wraps which could cause coredumps.
Jeremy.
-
Jeremy Allison
5332af1124 Fix buggy data_len calculation in echo. Add paranoia debug message.
Jeremy.
-
Jeremy Allison
7622a9dbbd Make us pass Samba4 lock tester (with one different error message).
Jeremy.
-
Jeremy Allison
c682fae16a Match W2K insanty w.r.t. writelock and writeclose. Samba4 torture tester.
Jeremy.
-
Jeremy Allison
84c993d9cd At least give a message if we're returning a short read for W2K compatibility.
Jeremy.
-
Jeremy Allison
e7565dbba6 Changes to allow Samba3 to pass the Samba4 RAW-READ tests.
Jeremy.
-
Jeremy Allison
6ad2f0ba27 Fixup error code returns from Samba4 tester. Ensure invalid paths are
validated the same way.
Jeremy.
-
Jeremy Allison
c11a7e5846 Take care of condition where DOS and NT error codes must differ. Found by
DOS program test by Amir Hardon <hardon@actcom.co.il>.
Jeremy.
-
Jeremy Allison
a9f9dd71da Protect against core dump if ioctl for print job sends invalid fid. Found
by Iskantharajah T <is@tracetec.com.my>.
Jeremy.
-
Jeremy Allison
27af1f9fea Implement SMBexit properly. Found by Samba4 tester. You must do a make
clean proto all; after this commit.
Jeremy.
-
Jeremy Allison
8a5c97fa07 Fix flush of 0xFFFF - found by Samba4 tester.
Jeremy.
-
Jeremy Allison
74486ab9ef Don't return DOS error on SMBsearch return if using NT error codes (NT1
protocol level). Fix for Samba4 tester.
Jeremy.
-
Jeremy Allison
f57429befa Implemented the level 1010 NT rename level. Many fixes for Samba4 test
correctness.
Jeremy.
-
Jeremy Allison
97e1d5c957 Fix changing of attributes via setattr. Samba4 test fixes.
Jeremy.
-
Jeremy Allison
10d90171ed Fix SMBseek and get/set position information SMBs. Works against
Samba4 tester. You will need a make clean; make all after this !
Jeremy.
-
Jeremy Allison
00a57b0953 Better path checking for chkpth. We now pass Samba4 chkpath and unlink.
Jeremy.
-
Jeremy Allison
a62cf6bf16 More chkpth fixes from Samba4 tests.
Jeremy.
-
Jeremy Allison
73aaf8094c Ensure we pass the Samba4 unlink test !
Jeremy.
-
Jeremy Allison
9bc0e4fe04 Fix another error code return against Samba4 test suite... Don't allow
a path above root.
Jeremy.
-
Jeremy Allison
c043835c87 Test invalid map system, map hidden, create mask, force create mask
parameters. Fix return code for Samba 4 torture tester.
Jeremy.
-
Jeremy Allison
e2742e0d89 Fix bug #226. Stop unmangle of name into a wildcard name from deleting more
than was intended.
Jeremy.
-
Andrew Bartlett
7c9e204f7e Try again to fix up 'session request' name exchange. This time we actualy
get the names...

Andrew Bartlett
-
Andrew Tridgell
2fd5569938 make sure we don't allow the creation of directories containing
wildcard characters. I've only put this in mkdir at the moment, but I
suspect this will apply to all places that can create new filenames.

We need to allow the opening of existing filenames that contain
wildcards, but not allow the creation of new ones.
-
Jeremy Allison
e5714edc23 Signing so far... the client code fails on a SMBtrans2 secondary transaction
I think (my changes haven't affected this I believe). Initial support on the
server side for smbclient. Still doesn't work for w2k clients I think...
Work in progress..... (don't change).
Jeremy.
-
Jeremy Allison
8d2a848052 Don't allow read/write raw when signing is active.
Jeremy.
-
Richard Sharpe
8e37c1d579 Fix an spelling mistake. -
Andrew Tridgell
999cde3227 SMBlockingX timeouts are in units of 2 milliseconds, not 1 -
Andrew Tridgell
59f1a5e6fd make the allocation_size consistent between trans2 QFILEINFO and SMBgetattrE -
Alexander Bokovoy
c2689ed118 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 -
Alexander Bokovoy
91984ef5ca 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
-
Andrew Bartlett
32fb801ddc Merge the 'safe' parts of my StrnCpy patch - many of the users really wanted
a pstrcpy/fstrcpy or at most a safe_strcpy().

These have the advantage of being compiler-verifiable.

Get these out of the way, along with a rewrite of 'get_short_archi' in the
spoolss client and server.  (This pushes around const string pointers, rather
than copied strings).

Andrew Bartlett
-
Andrew Bartlett
5a577f8caf Make the variable name match the comment.
Andrew Bartlett
-
Tim Potter
a2b1a7533e Merge of Simo's strncat -> StrnCpy fix. -
Gerald Carter
b2e29c7bd4 * We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
-
Gerald Carter
36d62e5667 cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L. -
Jeremy Allison
52e44dde4e Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Jeremy.
-
Gerald Carter
e6034a03d5 cleanup the IPC/LPT:/A: mess I started -
Jeremy Allison
ef1782121b Fix DOS del command with widelinks = False.
Jeremy.
-
Gerald Carter
4dd81caeff win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the
tcon&X fixes this.
-
Volker Lendecke
d59a7bea6b Merge from HEAD -
Andrew Bartlett
c5b604e2ee Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
-