1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

26 Commits

Author SHA1 Message Date
Richard Sharpe
0922c254c6 r415: Return NT_STATUS_ACCESS_DENIED not some LOCK message ...
(This used to be commit 164ff9a192e82be6eaef7b6e7c03e5dc7203f3de)
2007-10-10 10:51:22 -05:00
Jeremy Allison
3fb52e5cc0 Can't set allocation size on directories, return correct error code on
fail if file exists and target is a directory. gentest.
Jeremy.
(This used to be commit f4a7ea6dc2b9f379a9c735670a49ac63818754c7)
2004-02-28 01:53:30 +00:00
Jeremy Allison
5114dee271 Fix for bug #64, Win9x Nexus tools not working against Samba3.0. Missing
map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
Jeremy.
(This used to be commit 7eaae388b35cb3d20cdd968b00d65c88fcee5878)
2003-10-21 23:14:41 +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
ef915c8eaf Final fix for the bug tridge found. Only push locks onto a blocking lock
queue if the posix lock failed with EACCES or EAGAIN (this means another
lock conflicts). Else return an error and don't queue the request.
Jeremy.
(This used to be commit 43fbc18fdc184bf29c15186c16bc99fb208de963)
2003-08-01 06:10:30 +00:00
Andrew Bartlett
251ea1e677 Merge minor library fixes from HEAD to 3.0.
- setenv() replacement
 - mimir's ASN1/SPNEGO typo fixes
 - (size_t)-1 fixes for push_* returns
 - function argument signed/unsigned correction
 - ASN1 error handling (ensure we don't use initiailsed data)
 - extra net ads join error checking
 - allow 'set security discriptor' to fail
 - escape ldap strings in libads.
 - getgrouplist() correctness fixes (include primary gid)

Andrew Bartlett
(This used to be commit e9d6e2ea9a3dc01d3849b925c50702cda6ddf225)
2003-02-19 12:31:16 +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
Jeremy Allison
f2def025e2 Fix write error returning EFBIG - found by Conrad.
Jeremy.
(This used to be commit e258887f508db3d2c923f393f0104e7cf1bd6545)
2002-12-11 18:52:21 +00:00
Tim Potter
f3e3a56ea9 Merge a bunch of trivial changes from HEAD. The difference remaining
should actual functional differences between HEAD and 3.0.

 - Mostly reformatting
 - Removal of unecessary #include "smb.h"
 - Merge of dyn_DRIVERFILE removal
 - Silly bug fix for python code
(This used to be commit d3998307adc50ba50defe610cb656c73799ae3b9)
2002-11-29 02:58:59 +00:00
Simo Sorce
115f859a85 sync with head
was:
consolidate alla error mapping functions in one file
(This used to be commit 2c9e8b79d94e3276e9eb9bd676af0a68ee3908ff)
2002-11-10 04:34:03 +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 Bartlett
33dd512896 Make a number of the lookup tables 'const'. I'm told this assists in sharing
memory between users of shared libs.

Andrew Bartlett
(This used to be commit 41dd5a4d292bb08fa313f6220014cd9b4490237b)
2002-03-23 08:45:03 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Andrew Tridgell
ab3cae9768 fixed a typo in the error map for WRONG_PASSWORD
(This used to be commit fb300e411bb385dcba2c3ca166598a71ed693b35)
2002-01-17 01:05:34 +00:00
Jeremy Allison
04ec469c72 Fixup error mapping so we have only one table containing errno -> dos error -> NT STATUS
maps. Fixes problem with disk full returning incorrect error.
Jeremy.
(This used to be commit 16fcbf3c1ccf1d704765653f68395dd596c0d841)
2002-01-16 21:27:57 +00:00
Tim Potter
d1baa1fda9 DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent
to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
(This used to be commit 9c968fbb017d3369ac207e65348a9a22dbed0213)
2002-01-06 02:55:37 +00:00
Andrew Bartlett
aa045c08b2 Add a comment on how this error map was derrived.
This applies only to the NT->Dos map, I'm still trying to come up with a way to
do the reverse.
(This used to be commit 323dd422bd4bdeeee72c9200821e28f86d3072c8)
2002-01-05 04:04:03 +00:00
Andrew Bartlett
80437a4cc0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
(This used to be commit a855dfb2e0b899d03087860e5462c2aed3ca4cad)
2002-01-03 08:36:47 +00:00
Andrew Bartlett
8d09eecf69 This brings the NT->DOS error mapping into better line with what NT does.
I'll post the changes to the actual map to the list for comment, but this fixes
the 'unknown' case.

Andrew Bartlett
(This used to be commit 024843a2cedb0b9f06a3351c5838caea372b6c5c)
2002-01-01 06:16:43 +00:00
Jean-François Micouleau
bf5a0e6717 NT_STATUS(0x80000005) maps to ERRDOS,234
J.F.
(This used to be commit 80e36549b61cc2bb5148f6abb175d31a0c7782a1)
2001-12-10 23:34:32 +00:00
Andrew Bartlett
d1b5508a7b Update some of the error mapping, based on on-the-wire observations of an NT4 server.
This lets our Win9X clients give sane error messages when you get passwords wrong
and the like.

Andrew Bartlett
(This used to be commit f199e9518226ed57a011113bdf06c85265e49674)
2001-11-23 07:08:20 +00:00
Tim Potter
554d387ab3 Added constants and error message for dos error code 1326 (logon failure).
(This used to be commit 6ce1eec09de64f19d969a67fc236abd4ae277926)
2001-11-23 05:37:40 +00:00
Andrew Tridgell
fbc1f326f4 more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
2001-09-03 10:38:13 +00:00
Andrew Tridgell
819f5ea0d5 use a name not a number for ERRinsufficientbuffer
(This used to be commit 8e70666fccde1025d77e4db51b5b63e5142d98ec)
2001-09-01 23:08:08 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-27 19:46:22 +00:00
Andrew Tridgell
ee5f7237de started converting NTSTATUS to be a structure on systems with gcc in order to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
(This used to be commit 1b778bc7d22efff3f90dc450eb12baa1241cf68f)
2001-08-27 17:52:23 +00:00