Volker Lendecke
37eb87d2be
lib: Align integer types
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2020-01-19 18:29:39 +00:00
Richard Sharpe
2224796fc3
Change all uses of uint32/16/8 in proto.h to uint32_t/16_t/8_t.
...
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-04-29 23:42:20 +02:00
Andrew Bartlett
cb25480e82
s3-lib: Do not walk past the end of the dos_to_ntstatus_map array
...
Found by AddressSanitizer
Change-Id: Ic8b3e2599713c37b11324f9ec2d01891f0f287b9
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
2014-09-08 07:26:34 +02:00
Andreas Schneider
3101d9bc2d
s3-libsmb: Remove dead gssapi code.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb 1 23:29:44 CET 2012 on sn-devel-104
2012-02-01 23:29:44 +01:00
Jeremy Allison
3e0d923096
Ensure we map our own Samba return of ERRSRV, ERRunknownsmb
...
on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
2011-12-02 20:41:02 +01:00
Volker Lendecke
25df2fe8e2
S3: Fix some nonempty blank lines
2011-07-03 11:31:29 +02:00
Andrew Bartlett
f1ec28827f
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
...
This takes the Samba4 version, with the NT_STATUS_IS_DOS() check.
This will be used in smbd/error.c shortly.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
865a937671
errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.
...
They are now identical
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Günther Deschner
d85f140826
s3-winbind: remove global inclusion of libwbclient.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
d19ea55e9e
s3-includes: avoid global include of gssapi headers.
...
Guenther
2011-03-16 10:11:16 +01:00
Günther Deschner
313db81ad3
s3-errormap: move (unused) map_nt_error_from_wbcErr out of errormap.
...
Guenther
2011-02-25 01:08:41 +01:00
Stefan Metzmacher
cd8e2fd9fa
s3-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED
...
metze
2010-09-10 17:21:32 +02:00
Jim McDonough
0ec0095d1a
s3-libsmbclient Convert dos error codes to NTstatus in async libsmbclient.
...
DOS error codes were being lost with the conversion to async
libsmbclient. If we're passing around NTSTATUS internally,
let's just convert it when we get it.
DOS ACCESS_DENIED on nautilus was not prompting for other credentials,
because it was not being mapped.
2010-08-19 15:49:31 -04:00
Jeremy Allison
714c60e627
Rename 282 -> ERReasnotsupported.
...
Jeremy.
2009-12-21 11:05:11 -08:00
Kai Blin
c93e2d9d43
errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFUL
...
This allows us to distinguish on NTSTATUS level if we got a
WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
2009-04-23 00:23:56 +02:00
Kai Blin
7a9be21916
errormap: Add wbcErr to NTSTATUS mappings
2009-04-22 00:14:45 +02:00
Jeremy Allison
afc93255d1
Add SMB encryption. Still fixing client decrypt but
...
negotiation works.
Jeremy.
(This used to be commit d78045601a
)
2007-12-26 17:12:36 -08:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Andrew Tridgell
153cfb9c83
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
...
(This used to be commit 87c91e4362
)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Volker Lendecke
6426d8b4a0
r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function is
...
useful even in binaries that don't link in libsmb
(This used to be commit 52545d1192
)
2007-10-10 12:22:56 -05:00
Jeremy Allison
383cc1fa1c
r22353: Fix bad #ifdefs.
...
Jeremy.
(This used to be commit 9173c846b1
)
2007-10-10 12:19:28 -05:00
Jeremy Allison
9812a7e32e
r22327: Finish the gss-spnego part of the seal code. Now
...
for testing....
Jeremy.
(This used to be commit 1c1f5360b6
)
2007-10-10 12:19:27 -05:00
Jeremy Allison
3adeddcc4a
r21967: Add conversion from gss errors to nt status.
...
Jeremy
(This used to be commit 8ba138efd0
)
2007-10-10 12:18:53 -05:00
Günther Deschner
58247fea05
r17677: There is no need for a 2nd krb5_to_nt_status function, is there?
...
Michael Adam/Volker, please check.
Guenther
(This used to be commit d0feb85781
)
2007-10-10 11:38:46 -05:00
Volker Lendecke
41a4496b20
r17606: Introduce krb5_to_ntstatus.
...
Thanks to Michael Adam <ma@sernet.de>
Volker
(This used to be commit 6e641c90b8
)
2007-10-10 11:38:42 -05:00
Jeremy Allison
8f93665bb5
r17262: After messages from Metze and traces from Karolin Seeger,
...
turns out that EDQUOTA must map to NT_STATUS_DISK_FULL
for Windows apps to work correctly. My mistake.
Jeremy.
(This used to be commit de1e3f7a7a
)
2007-10-10 11:38:23 -05:00
Jeremy Allison
74cd692d9b
r17234: Fix error mappings for EQUOTA and ENOBUFS.
...
Based on an idea from Shlomi Yaakobovich <Shlomi@exanet.com>.
Jeremy.
(This used to be commit 9c440925f8
)
2007-10-10 11:38:21 -05:00
Jeremy Allison
22dbd67708
r15018: Merge Volker's ipc/trans2/nttrans changes over
...
into 3.0. Also merge the new POSIX lock code - this
is not enabled unless -DDEVELOPER is defined.
This doesn't yet map onto underlying system POSIX
locks. Updates vfs to allow lock queries.
Jeremy.
(This used to be commit 08e52ead03
)
2007-10-10 11:15:57 -05:00
Gerald Carter
0af1500fc0
r13316: Let the carnage begin....
...
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed
)
2007-10-10 11:06:23 -05:00
Gerald Carter
54abd2aa66
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7
)
2007-10-10 11:04:48 -05:00
Jeremy Allison
af8a691db1
r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the torture
...
tests on this as it's very late NY time (just wanted to get this work
into the tree). I'll test this over the weekend....
Jerry - in looking at the difference between the two trees there
seem to be some printing/ntprinting.c and registry changes we might
want to examine to try keep in sync.
Jeremy.
(This used to be commit c7fe18761e
)
2007-10-10 10:58:18 -05:00
Steve French
d7173b35e9
r6447: Add missing error mapping for EMLINK to NT_STATUS_TOO_MANY_LINKS (we have it the other direction
...
in clierror already). This fixes the return code when we try to hardlink from a client.
(This used to be commit ccbdffb94e
)
2007-10-10 10:56:41 -05:00
Jeremy Allison
8875124a61
r2575: Return correct error codes on old SEARCH call (from Samba4 torture tester).
...
Jeremy.
(This used to be commit fc51c97ea8
)
2007-10-10 10:52:47 -05:00
Richard Sharpe
0922c254c6
r415: Return NT_STATUS_ACCESS_DENIED not some LOCK message ...
...
(This used to be commit 164ff9a192
)
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 f4a7ea6dc2
)
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 7eaae388b3
)
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 6ad2f0ba27
)
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 43fbc18fdc
)
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 e9d6e2ea9a
)
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 3a7458f947
)
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 e258887f50
)
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 d3998307ad
)
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 2c9e8b79d9
)
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 03ac082dcb
)
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 41dd5a4d29
)
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 6a58c9bd06
)
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 fb300e411b
)
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 16fcbf3c1c
)
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 9c968fbb01
)
2002-01-06 02:55:37 +00:00