summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-28 01:53:30 +0000
committerJeremy Allison <jra@samba.org>2004-02-28 01:53:30 +0000
commit3fb52e5cc0fe632584704e807dde5f0ae6612413 (patch)
tree668c5f44a99ca21092b87db90c05ee02c82cb7cd /source3/libsmb
parent3c1d00d12a2e3ef2c685c47313487dccae755294 (diff)
downloadsamba-3fb52e5cc0fe632584704e807dde5f0ae6612413.tar.gz
samba-3fb52e5cc0fe632584704e807dde5f0ae6612413.tar.bz2
samba-3fb52e5cc0fe632584704e807dde5f0ae6612413.zip
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)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/errormap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c
index 116d2cefe1..aeb68b6596 100644
--- a/source3/libsmb/errormap.c
+++ b/source3/libsmb/errormap.c
@@ -1503,6 +1503,7 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
{ EMFILE, ERRDOS, ERRnofids, NT_STATUS_TOO_MANY_OPENED_FILES },
{ ENOSPC, ERRHRD, ERRdiskfull, NT_STATUS_DISK_FULL },
{ ENOMEM, ERRDOS, ERRnomem, NT_STATUS_NO_MEMORY },
+ { EISDIR, ERRDOS, ERRnoaccess, NT_STATUS_FILE_IS_A_DIRECTORY},
#ifdef EDQUOT
{ EDQUOT, ERRHRD, ERRdiskfull, NT_STATUS_DISK_FULL },
#endif