summaryrefslogtreecommitdiff
path: root/source3/lib/errmap_unix.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-06errors: Remove unused unix_to_werror()Andrew Bartlett1-6/+0
2011-05-06s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett1-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
2011-01-26errormap: Add unix_to_werror() functionKai Blin1-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
2010-08-19-ENOTSUP translates to NT_STATUS_NOT_SUPPORTEDSurbhi Palande1-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>
2009-08-27s3:error_map: make NTSTATUS -> errno -> NTSTATUS mapping consistent for ↵Stefan Metzmacher1-1/+1
NT_STATUS_INVALID_PARAMETER Why have we mapped EINVAL -> NT_STATUS_INVALID_HANDLE before? metze
2009-08-12s3:lib: map ECONNRESET to NT_STATUS_CONNECTION_RESETStefan Metzmacher1-0/+3
metze
2009-07-15s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIEDStefan Metzmacher1-0/+1
Jeremy: please check and decide if we want to backport this. metze
2009-06-04s3: map NetBSD's errno on posix open calls for symlinksBjörn Jacke1-0/+3
This is well undocumented but NetBSD returns EFTYPE on O_NOFOLLOW open calls on symlinks.
2009-03-06s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mappingStefan Metzmacher1-0/+3
If someone knows a better dos error, please tell me... metze
2008-10-07Make map_errno_from_nt_status() a generic call, not just a cli specific one.Jeremy Allison1-0/+136
Remove some unused calls from vfs_acl_xattr. Test for SD's on existing files. Jeremy.
2008-08-12I found lots of places where we assume error will be set when callingAndrew Tridgell1-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)
2008-01-19Add an error mapping for ENOATTRVolker Lendecke1-0/+3
(This used to be commit 9f0d778490415b05224f36287df999672ee16928)
2007-10-10r23845: Second part of the fix for #4777. Looks like on AIX opendirJeremy Allison1-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)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23550: Add more UNIX error -> NT status mappings.Jeremy Allison1-0/+25
Jeremy. (This used to be commit 1e66a8340e7db9c42507d93d67ad33abadabd2a1)
2007-10-10r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function isVolker Lendecke1-0/+92
useful even in binaries that don't link in libsmb (This used to be commit 52545d119277b42a46d13b5b031c85f47d96b84c)