1
0
mirror of https://github.com/samba-team/samba.git synced 2025-05-04 06:50:23 +03:00

988 Commits

Author SHA1 Message Date
Jeremy Allison
3a9510acae Fix buggy data_len calculation in echo. Add paranoia debug message.
Jeremy.
(This used to be commit 5332af1124077f49e84836f5cedfbde98336b142)
2003-10-16 18:17:44 +00:00
Jeremy Allison
e7d1e9a9b6 Make us pass Samba4 lock tester (with one different error message).
Jeremy.
(This used to be commit 7622a9dbbded8d07f976ec965adca5e92de3d2b0)
2003-10-10 01:53:38 +00:00
Jeremy Allison
90b147022e Match W2K insanty w.r.t. writelock and writeclose. Samba4 torture tester.
Jeremy.
(This used to be commit c682fae16a2fa18f951c69ba29b1a576f4e27d6b)
2003-10-09 21:04:48 +00:00
Jeremy Allison
e74b6f41cf At least give a message if we're returning a short read for W2K compatibility.
Jeremy.
(This used to be commit 84c993d9cd0bc57a8b8b9aa716af1336620e2c87)
2003-10-09 19:01:31 +00:00
Jeremy Allison
22c0241571 Changes to allow Samba3 to pass the Samba4 RAW-READ tests.
Jeremy.
(This used to be commit e7565dbba696adbb0fd8cca6b86a1a7e5a655f2e)
2003-10-09 01:46:01 +00:00
Jeremy Allison
52f63783bc Fixup error code returns from Samba4 tester. Ensure invalid paths are
validated the same way.
Jeremy.
(This used to be commit 6ad2f0ba27566ab3928ccbbbb3c3a64b09ca139c)
2003-10-08 23:21:36 +00:00
Jeremy Allison
57c863190d 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.
(This used to be commit c11a7e5846002b16d0cb2991b5a7df0636b070d5)
2003-09-29 23:35:41 +00:00
Jeremy Allison
5daacc87b5 Protect against core dump if ioctl for print job sends invalid fid. Found
by Iskantharajah T <is@tracetec.com.my>.
Jeremy.
(This used to be commit a9f9dd71da41801c975303a385ff229788c9498a)
2003-09-08 20:27:28 +00:00
Jeremy Allison
6d6401a67a Implement SMBexit properly. Found by Samba4 tester. You must do a make
clean proto all; after this commit.
Jeremy.
(This used to be commit 27af1f9feab12542dc538bfceac4593e644ba3b4)
2003-08-19 01:53:45 +00:00
Jeremy Allison
c0236e8ae3 Fix flush of 0xFFFF - found by Samba4 tester.
Jeremy.
(This used to be commit 8a5c97fa07eacd4cecb5afd9c197352dfa613b9f)
2003-08-19 01:26:43 +00:00
Jeremy Allison
e83a8a40c8 Don't return DOS error on SMBsearch return if using NT error codes (NT1
protocol level). Fix for Samba4 tester.
Jeremy.
(This used to be commit 74486ab9efbb555f830b0e5d1c88f7bf065ae039)
2003-08-19 01:02:41 +00:00
Jeremy Allison
3a052c9e0a Implemented the level 1010 NT rename level. Many fixes for Samba4 test
correctness.
Jeremy.
(This used to be commit f57429befa43d63ed9a6e19b854e22fd4151db40)
2003-08-16 02:34:03 +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
405135fdeb Better path checking for chkpth. We now pass Samba4 chkpath and unlink.
Jeremy.
(This used to be commit 00a57b0953c40a0ad6780eae84b4c558e21dbcfd)
2003-08-13 03:28:06 +00:00
Jeremy Allison
db58f51416 More chkpth fixes from Samba4 tests.
Jeremy.
(This used to be commit a62cf6bf16e2f435f504e936c31992f5697a309a)
2003-08-13 02:31:22 +00:00
Jeremy Allison
a9975acc92 Ensure we pass the Samba4 unlink test !
Jeremy.
(This used to be commit 73aaf8094c2fed76b6650afbd8ff4f050f5e52d2)
2003-08-13 00:31:23 +00:00
Jeremy Allison
df35fb0745 Fix another error code return against Samba4 test suite... Don't allow
a path above root.
Jeremy.
(This used to be commit 9bc0e4fe04c4134add428c889d316bd5ee4fb6e9)
2003-08-12 04:52:11 +00:00
Jeremy Allison
4511b334a8 Test invalid map system, map hidden, create mask, force create mask
parameters. Fix return code for Samba 4 torture tester.
Jeremy.
(This used to be commit c043835c878ff062cb6eede02334f9e0ebb01050)
2003-08-12 04:28:22 +00:00
Jeremy Allison
6070a519c2 Fix bug #226. Stop unmangle of name into a wildcard name from deleting more
than was intended.
Jeremy.
(This used to be commit e2742e0d897a35820a7d8f184292c32a4c3952e3)
2003-07-29 19:16:59 +00:00
Andrew Bartlett
1478bcd847 Try again to fix up 'session request' name exchange. This time we actualy
get the names...

Andrew Bartlett
(This used to be commit 7c9e204f7eb15139532f2cc522ed87d0ac34d118)
2003-07-27 03:29:40 +00:00
Andrew Tridgell
5e252c86bd 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.
(This used to be commit 2fd5569938b8970f3e9d761eecad5bc0b8bb267e)
2003-07-18 07:07:29 +00:00
Jeremy Allison
814e987c62 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.
(This used to be commit e5714edc233424c2f74edb6d658f32f8e0ec9275)
2003-07-18 00:53:34 +00:00
Jeremy Allison
9ad4fbcf75 Don't allow read/write raw when signing is active.
Jeremy.
(This used to be commit 8d2a848052df03dad7bfeb5e7be96f8e9a509bbf)
2003-07-17 00:53:37 +00:00
Richard Sharpe
3d0d8f609d Fix an spelling mistake.
(This used to be commit 8e37c1d579ed801fd602d698174f981deff435d9)
2003-06-13 17:49:03 +00:00
Andrew Tridgell
53f8d3f01a SMBlockingX timeouts are in units of 2 milliseconds, not 1
(This used to be commit 999cde3227210c90132ade3812e964087f04e541)
2003-06-06 10:42:16 +00:00
Andrew Tridgell
e35917bb93 make the allocation_size consistent between trans2 QFILEINFO and SMBgetattrE
(This used to be commit 59f1a5e6fd783b977f787dae4ba4bb8b65c41e43)
2003-06-06 05:32:36 +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
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
Andrew Bartlett
2a3a9f0bf4 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
(This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-04-23 13:27:35 +00:00
Andrew Bartlett
be86f6555a Make the variable name match the comment.
Andrew Bartlett
(This used to be commit 5a577f8cafa7375bd8485763f163de939ddc4a39)
2003-04-23 11:11:02 +00:00
Tim Potter
c8cc8bb60c Merge of Simo's strncat -> StrnCpy fix.
(This used to be commit a2b1a7533ed997848f9dc0fcd1ffc3d4b4e8117d)
2003-04-13 23:45:35 +00:00
Gerald Carter
e1ea87ff03 * We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
(This used to be commit b2e29c7bd45f8f33d9ed58fe75bbf5ffc78350f5)
2003-04-11 23:48:24 +00:00
Gerald Carter
14e03aed29 cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
(This used to be commit 36d62e5667f3b9e39362fb3907bf69697fca3ea6)
2003-04-11 23:28:15 +00:00
Jeremy Allison
045db5d045 Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Jeremy.
(This used to be commit 52e44dde4ef9717eae7cf454f56d309fdd4b7d1f)
2003-04-09 22:31:37 +00:00
Gerald Carter
9676bf7e5c cleanup the IPC/LPT:/A: mess I started
(This used to be commit e6034a03d543d8672303f2b24982cfc03b124391)
2003-03-27 22:27:53 +00:00
Jeremy Allison
fa4b83ce92 Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ef1782121bc4ebcdd2731fd6863209352f815dbe)
2003-03-26 22:15:21 +00:00
Gerald Carter
8460dc4340 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.
(This used to be commit 4dd81caeff96d2b7f08b4846a524f917a85407a4)
2003-03-25 04:14:54 +00:00
Volker Lendecke
70788c30fb Merge from HEAD
(This used to be commit d59a7bea6b22a4c3e6cacd1a4c5ee95f42b13a26)
2003-03-20 18:13:27 +00:00
Andrew Bartlett
d5ee9b2f48 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
(This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18 11:22:52 +00:00
Andrew Bartlett
cdc6fc8acb Add an extra parameter to our 'set_remote_machine_name' and
'set_local_machine_name' so that the client can't change it from under us.

(.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP
on the domain join).

Andrew Bartlett
(This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
2003-03-18 09:52:55 +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
fb3e4b8797 Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
2003-02-27 01:04:34 +00:00
Andrew Bartlett
27b7e51a3c Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-14 08:53:59 +00:00
Jeremy Allison
a2cce2f075 Ensure we return disk full by default on short writes.
Jeremy.
(This used to be commit 2a974bc284b9d193c24972d073b966eb9b3b3ad0)
2003-01-08 23:49:21 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2003-01-03 08:28:12 +00:00
Simo Sorce
0747016dfc from HEAD:
fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit bcc633c4097661447731bda24a38be62c69bbed5)
2002-12-31 10:25:11 +00:00
Jeremy Allison
ce2b200add Fix for old DOS client when veto files is set to /.*/
Jeremy.
(This used to be commit 8e9f3b1574cd51d6b9880d9c8a676e695cd86062)
2002-12-13 19:07:37 +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
d4103a0991 Added Volker's directory fix - save the attributes
from the first call.
Jeremy.
(This used to be commit b60a441b91dccdeadc125476ac3306b938941057)
2002-12-04 22:48:13 +00:00