summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-04 05:24:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:11 -0500
commita703329908431b473483fe0e70a121fff1e5fbf6 (patch)
tree2f8cfddca20bb1c78ab2c0ab1aaf2d50e33669a6 /source4/ntvfs
parent8ade96e5e4385767dfd733db966f85ef16d77501 (diff)
downloadsamba-a703329908431b473483fe0e70a121fff1e5fbf6.tar.gz
samba-a703329908431b473483fe0e70a121fff1e5fbf6.tar.bz2
samba-a703329908431b473483fe0e70a121fff1e5fbf6.zip
r8122: more fixes from testing dos error code handling against w2k3
(This used to be commit b71fbcf5e2c627d918aef555b8cc8dd4591d8fe7)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_ioctl.c2
-rw-r--r--source4/ntvfs/posix/pvfs_open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_ioctl.c b/source4/ntvfs/posix/pvfs_ioctl.c
index 45d29b530d..abf575aa3d 100644
--- a/source4/ntvfs/posix/pvfs_ioctl.c
+++ b/source4/ntvfs/posix/pvfs_ioctl.c
@@ -30,7 +30,7 @@
static NTSTATUS pvfs_ioctl_old(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_ioctl *io)
{
- return NT_STATUS_UNSUCCESSFUL;
+ return NT_STATUS_DOS(ERRSRV, ERRerror);
}
/*
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c
index f58cc60f9a..327f096e7c 100644
--- a/source4/ntvfs/posix/pvfs_open.c
+++ b/source4/ntvfs/posix/pvfs_open.c
@@ -1156,7 +1156,7 @@ NTSTATUS pvfs_close(struct ntvfs_module_context *ntvfs,
struct utimbuf unix_times;
if (io->generic.level == RAW_CLOSE_SPLCLOSE) {
- return NT_STATUS_UNSUCCESSFUL;
+ return NT_STATUS_DOS(ERRSRV, ERRerror);
}
if (io->generic.level != RAW_CLOSE_CLOSE) {