summaryrefslogtreecommitdiffstats
path: root/source3/lib/errmap_unix.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Add EMSGSIZE to map_nt_error_from_unixVolker Lendecke2014-09-181-0/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* s3:lib add mapping for ETXTBSYChristian Ambach2013-06-251-0/+3
| | | | | | | | add ETXTBSY to the errno->STATUS conversion table. It will be mapped to STATUS_SHARING_VIOLATION Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3:lib/errmap_unix: map EPIPE to NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-10-251-1/+1
| | | | | | | | | This lets map_nt_error_from_unix() return the same value as map_nt_error_from_unix_common(). There are no callers relying on NT_STATUS_PIPE_BROKEN. metze
* errors: reorder error codes for easier s3/s4 comparisonAndrew Bartlett2011-06-171-11/+11
|
* s3-lib Improve indentation of errmap_unixAndrew Bartlett2011-05-311-36/+36
| | | | | | | | This also makes it easier to compare and contrast with the source4 version, because the differences here matter, and need to be resolved with care. Andrew Bartlett
* s3-lib: Use ARRAY_SIZE() to walk the error mapping tablesAndrew Bartlett2011-05-311-6/+4
| | | | | | This gives a constant termination condition, and may help the compiler. Andrew Bartlett
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-6/+0
|
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-44/+47
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
* errormap: Add unix_to_werror() functionKai Blin2011-01-261-0/+6
| | | | | | | | | | | While this function technically is closest to the map_nt_status_from_unix() function, I think it is better to keep the new function in line with our usual fooerror_to_barerror() naming scheme. Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Jan 26 23:07:24 CET 2011 on sn-devel-104
* -ENOTSUP translates to NT_STATUS_NOT_SUPPORTEDSurbhi Palande2010-08-191-1/+3
| | | | | | | | | | https://launchpad.net/bugs/276472 This patch adds the translation of Unix Error code -ENOTSUP to NT Error Code NT_STATUS_NOT_SUPPORTED. The absense of this translation wrongly sends back to the client a STATUS_DENIED message in samba3. Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
* s3:error_map: make NTSTATUS -> errno -> NTSTATUS mapping consistent for ↵Stefan Metzmacher2009-08-271-1/+1
| | | | | | | | NT_STATUS_INVALID_PARAMETER Why have we mapped EINVAL -> NT_STATUS_INVALID_HANDLE before? metze
* s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESETStefan Metzmacher2009-08-121-0/+3
| | | | metze
* s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIEDStefan Metzmacher2009-07-151-0/+1
| | | | | | Jeremy: please check and decide if we want to backport this. metze
* s3: map NetBSD's errno on posix open calls for symlinksBjörn Jacke2009-06-041-0/+3
| | | | | This is well undocumented but NetBSD returns EFTYPE on O_NOFOLLOW open calls on symlinks.
* s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mappingStefan Metzmacher2009-03-061-0/+3
| | | | | | If someone knows a better dos error, please tell me... metze
* Make map_errno_from_nt_status() a generic call, not just a cli specific one.Jeremy Allison2008-10-071-0/+136
| | | | | Remove some unused calls from vfs_acl_xattr. Test for SD's on existing files. Jeremy.
* I found lots of places where we assume error will be set when callingAndrew Tridgell2008-08-121-2/+10
| | | | | | | | | | | | | | | | one of our virtualised functions, such as db_open(), but error is only set when a system call fails, and it is not uncommon for us to fail a function internally without ever making a system call. That led to us passing back success when a function had in fact failed. I found two places where we relied on map_nt_error_from_unix() returning success when errno==0, but lots and lots of places where we relied on the reverse, so I fixed those two places. map_nt_error_from_unix() will now always return an error, returning NT_STATUS_UNSUCCESSFUL if errno is 0 (cherry picked from commit 69d40ca4c1af925d4b0e59ddc69ef8c26e6501d1) (This used to be commit 834684a524a24bb4eb46b4af583d39947dc87d95)
* Add an error mapping for ENOATTRVolker Lendecke2008-01-191-0/+3
| | | | (This used to be commit 9f0d778490415b05224f36287df999672ee16928)
* r23845: Second part of the fix for #4777. Looks like on AIX opendirJeremy Allison2007-10-101-0/+3
| | | | | | | | returns an errno of ELOOP for a symlink of msdfs:server\path\to\link. Cope with this by mapping to a known error NT_STATUS_OBJECT_PATH_NOT_FOUND that we know dfs_path_lookup should ignore. Jeremy. (This used to be commit d4a7411c4886c601a917b0f0e53facc7e10dd18e)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23550: Add more UNIX error -> NT status mappings.Jeremy Allison2007-10-101-0/+25
| | | | | Jeremy. (This used to be commit 1e66a8340e7db9c42507d93d67ad33abadabd2a1)
* r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function isVolker Lendecke2007-10-101-0/+92
useful even in binaries that don't link in libsmb (This used to be commit 52545d119277b42a46d13b5b031c85f47d96b84c)